-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
ENH Adds feature_names_in_ to ColumnTransformer #20839
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 Adds feature_names_in_ to ColumnTransformer #20839
Conversation
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.
LGTM!
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.
LGTM!
Sorry for the double review, my wifi was not responsive and I thought the first review had failed :) |
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.
LGTM, only nitpicks.
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
hi how can i use this feature, i am using columntransfomer and unsure how to retrieve names |
This feature will be available with the release of 1.0. You can try it out by installing the RC: pip install --pre scikit-learn |
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
Reference Issues/PRs
Follow up to #18010
What does this implement/fix? Explain your changes.
This PR adds
feature_names_in_
toColumnTransformer
.ColumnTransformer
deliberately does notrequirecheck for column name consistency. (see #19263)