-
-
Notifications
You must be signed in to change notification settings - Fork 26.2k
Fix PandasAdapter
causes crash or misattributed features
#31079
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
Fix PandasAdapter
causes crash or misattributed features
#31079
Conversation
@glemaitre wondering if I can get a review? |
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 for the PR @nicolas-bolle. I think a higher level non regression test very similar the the reproducer that you posted in #31051 would be useful. Please also add a changelog entry.
f4fbd4c
to
2b03d29
Compare
Thanks @nicolas-bolle. I just moved the test into the column transformer dedicated tests and made the changelog entry about a fix of the column transformer because we usually don't mention private API in the changelog and instead how it impacts the user. Please let me know if the new phrasing is fine, don't hesitate to edit it if it needs improvement. |
Yep thanks @jeremiedbb this looks great, thanks for the edits. Anything else needed before getting reviews? |
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. Thanks @nicolas-bolle
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
…arn#31079) Co-authored-by: Jérémie du Boisberranger <jeremie@probabl.ai>
…arn#31079) Co-authored-by: Jérémie du Boisberranger <jeremie@probabl.ai>
…arn#31079) Co-authored-by: Jérémie du Boisberranger <jeremie@probabl.ai>
…arn#31079) Co-authored-by: Jérémie du Boisberranger <jeremie@probabl.ai>
…arn#31079) Co-authored-by: Jérémie du Boisberranger <jeremie@probabl.ai>
…arn#31079) Co-authored-by: Jérémie du Boisberranger <jeremie@probabl.ai>
Reference Issues/PRs
Fixes #31051. See also #28731.
What does this implement/fix? Explain your changes.
PandasAdapter
causes crash or misattributed features #31051 edge case where ColumnTransformer crashes because dataframes and series are handled differently by PandasAdapterAny other comments?