pandas-select #374
jeffzi
started this conversation in
Show and tell
Replies: 1 comment
-
This is neat! Btw the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm the author of pandas-select, a collection of DataFrame selectors that facilitates indexing and selecting data. The main goal is to bring the power of R's tidyselect to pandas.
I added support for pandera in the latest version:
Created on 2021-01-03 by the reprexpy package
With
pandas_select.SchemaSelector
, you can filter any columns using attributes of the pandera schema attached to a dataframe.Generally speaking, I've been thinking about a proposal to extend DataFrameSchema.select_columns and adding arbitrary metadata to a schema. For example, adding a tag for roles (target, feature) in machine learning datasets (inspired from the R library Recipe).
^ This is already possible by simply subclassing
pandera.Column
.Beta Was this translation helpful? Give feedback.
All reactions