-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
ENH Improve warnings if func returns a dataframe in FunctionTransformer #26944
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 Improve warnings if func returns a dataframe in FunctionTransformer #26944
Conversation
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 on my side. Thanks @thomasjpfan
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.
I find the use of the present tense in the warning message a bit confusing (see below) but other than that LGTM. Thanks for the UX fix!
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Thanks @thomasjpfan |
…er (scikit-learn#26944) Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
…er (scikit-learn#26944) Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Reference Issues/PRs
Closes #26552
What does this implement/fix? Explain your changes.
This PR implements the suggestion in #26552 (comment). The warning is now delayed to
transform
and not inset_output
.