-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
ENH Adds support for list of bools in column transformer #17616
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 support for list of bools in column transformer #17616
Conversation
@@ -297,6 +305,14 @@ def test_column_transformer_empty_columns(pandas, column): | |||
assert len(ct.transformers_) == 2 # including remainder | |||
assert isinstance(ct.transformers_[0][1], Trans) | |||
|
|||
# trans2 is not passed anything because column does not select any |
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.
no, it's not even fitted. I think, rather, you should be using TransRaise in some of the above ct
definitions, rather than introducing a new case.
Are lists of bools including True handled and tested elsewhere? |
List of bool are handled in |
@thomasjpfan you have merge conflicts to resolve =/ |
Thank you for the ping! (There must be some service or bot that could ping me when one of my PRs have a merge conflict because of an update to master) |
@thomasjpfan @jnothman this looks good to merge to me! Anything else that needs to be done? |
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, LGTM.
Reference Issues/PRs
Fixes #17586
What does this implement/fix? Explain your changes.
This could be considered a bug fix since we support "array-like" of bools.