Skip to content

Commit

Permalink
Update comment for cs.by_name()
Browse files Browse the repository at this point in the history
  • Loading branch information
jrycw committed May 23, 2024
1 parent ab0042e commit ab1786d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions great_tables/_tbl_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,7 @@ def _(data: PlDataFrame, expr: Union[list[str], _selector_proxy_], strict: bool
else:
raise TypeError(f"Unsupported selection expr type: {type(expr)}")

# `cs.by_name()` will match all names by default, covering the case where
# `expr` is an empty list.
# `cs.by_name()` will cover the case where `expr` is an empty list.
expr = cs.by_name(expr_str)
if expr_int:
# `cs.by_index()` will raise a `pyo3_runtime.PanicException`. Therefore, it needs to be
Expand Down

0 comments on commit ab1786d

Please sign in to comment.