Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] generic select function #1187

Merged
merged 13 commits into from
Nov 8, 2022
Prev Previous commit
Next Next commit
update docs in select
  • Loading branch information
samukweku committed Nov 4, 2022
commit 735ad217d94769737da797733123f0164da5d8c9
1 change: 1 addition & 0 deletions janitor/functions/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ def select(df: pd.DataFrame, *, rows=None, columns=None) -> pd.DataFrame:
cobra 2

Labels can be dropped with the `DropLabel` class:

>>> df.select(rows=DropLabel('cobra'))
max_speed shield
viper 4 5
Expand Down