-
Notifications
You must be signed in to change notification settings - Fork 135
Add selector user guide #1419
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
Add selector user guide #1419
Conversation
2b9de03
to
4610cfc
Compare
doc/selectors.rst
Outdated
- Delayed selection: passing a selection rule, to be evaluated later on a | ||
dataframe that is not yet available. For example, without selectors | ||
it is not possible to instantiate a :class:`~skrub.SelectCols` that selects "all | ||
columns that have numerical data types, except the column ``'User ID'``", if the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not very convinced by this example. How about using datetime columns that haven't yet been parsed as datetimes? So they'd start as strings, and the selector for dates would not recognize them as such.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better? "all columns except those with the suffix 'ID'"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to me the delayed selection is important when there are transformations that add or modify columns so that they're different from the input, so casting to a different datatype or maybe generating features with one of the encoders (which is why I mentioned datetimes)
"all columns except those with the suffix ID" looks to me like something that could be done immediately
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the PR @Vincent-Maladiere
I made a few comments, mostly to reword a few sentences.
dataframes: | ||
|
||
>>> import pandas as pd | ||
>>> df = pd.DataFrame( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering if there should be a line explaining that "this is a dataset about page sizes", I find it a bit unusual and did not understand what the numbers were saying the first read through
|
In this PR or a separate one? |
Maybe in a separate one? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure we can always iterate in separate PRs
waiting for @GaelVaroquaux to have a quick look before merging |
@GaelVaroquaux mentioned in the weekly meeting that this and other doc PRs should be iterated over, so we can merge it and open new PRs as needed |
Fixes #1382