Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@thomasjpfan
Copy link
Member

@thomasjpfan thomasjpfan commented Dec 20, 2023

Reference Issues/PRs

Closes #15346

What does this implement/fix? Explain your changes.

This PR adds a __getitem__ to ColumnTransformer, which is the same as columntransformer.named_transformer_[...]. For now, the __getitem__ is restricted to fitted column transformers.

@github-actions
Copy link

github-actions bot commented Dec 20, 2023

✔️ Linting Passed

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

Generated for commit: c96c618. Link to the linter CI: here

Copy link
Member

@adrinjalali adrinjalali left a comment

Choose a reason for hiding this comment

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

Adding a test for when the key/subestimator name doesn't exist, and moving the changelog to 1.5, LGTM.

@adrinjalali adrinjalali merged commit 678e399 into scikit-learn:main Dec 27, 2023
glemaitre added a commit to glemaitre/scikit-learn that referenced this pull request Feb 10, 2024
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.

Add __getitem__ to ColumnTransformer?

4 participants