Skip to content

DOC add feature_names_in_ in the docsring of ColumnTransformer #27130

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
Sep 12, 2023

Conversation

glemaitre
Copy link
Member

I was a bit surprised thinking that feature_names_in_ was not available in the ColumnTransformer but it actually does when passing a DataFrame like any other transformer.

Correcting the docstring in this PR.

@github-actions
Copy link

github-actions bot commented Aug 22, 2023

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 6e325d3. Link to the linter CI: here

Comment on lines 176 to 177
Names of features seen during :term:`fit`. Only defined if the
underlying estimators expose such an attribute when fit.
Copy link
Member

Choose a reason for hiding this comment

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

I think you mean to say "Only defined if X has feature names during fit"? This doesn't have anything to do with the underlying estimators 😁

Copy link
Member Author

Choose a reason for hiding this comment

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

wrong copy-paste

@glemaitre glemaitre force-pushed the update_ct_feature_names_in branch from 9cd2a18 to 5f141a3 Compare September 11, 2023 15:07
@glemaitre
Copy link
Member Author

ping @ArturoAmorQ Could you review this one.

Co-authored-by: Arturo Amor <86408019+ArturoAmorQ@users.noreply.github.com>
Copy link
Member

@ArturoAmorQ ArturoAmorQ left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @glemaitre!

@ArturoAmorQ ArturoAmorQ enabled auto-merge (squash) September 12, 2023 12:12
@ArturoAmorQ ArturoAmorQ merged commit d8e131c into scikit-learn:main Sep 12, 2023
glemaitre added a commit to glemaitre/scikit-learn that referenced this pull request Sep 18, 2023
REDVM pushed a commit to REDVM/scikit-learn that referenced this pull request Nov 16, 2023
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.

3 participants