-
-
Notifications
You must be signed in to change notification settings - Fork 26k
[MRG] Improve error message for None values in OneHotEncoder and OrdinalEncoder #16713
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
Conversation
@jnothman |
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.
Otherwise LGTM
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 would like the error message to be more informative:
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 very much for the contribution.
Reference Issues/PRs
Fixes #16702, #16703
What does this implement/fix? Explain your changes.
None
input values were not checked when usingOneHotEncoder
andOrdinalEncoder
. In this PR, aValueError
error is raised in those cases.Any other comments?