Skip to content

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

Merged
merged 5 commits into from
Aug 26, 2021

Conversation

thomasjpfan
Copy link
Member

@thomasjpfan thomasjpfan commented Aug 25, 2021

Reference Issues/PRs

Follow up to #18010

What does this implement/fix? Explain your changes.

This PR adds feature_names_in_ to ColumnTransformer. ColumnTransformer deliberately does not require check for column name consistency. (see #19263)

@thomasjpfan thomasjpfan changed the title ENH Adds feature_names_in_ to compose ENH Adds feature_names_in_ to ColumnTransformer Aug 25, 2021
Copy link
Member

@ogrisel ogrisel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@ogrisel ogrisel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ogrisel
Copy link
Member

ogrisel commented Aug 25, 2021

Sorry for the double review, my wifi was not responsive and I thought the first review had failed :)

Copy link
Member

@lorentzenchr lorentzenchr left a 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>
@ogrisel ogrisel merged commit 7e7cdd6 into scikit-learn:main Aug 26, 2021
@zahs123
Copy link

zahs123 commented Sep 9, 2021

hi how can i use this feature, i am using columntransfomer and unsure how to retrieve names

@thomasjpfan
Copy link
Member Author

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

samronsin pushed a commit to samronsin/scikit-learn that referenced this pull request Nov 30, 2021
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants