-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
ENH Adds encoded_missing_value to OrdinalEncoder #21988
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 encoded_missing_value to OrdinalEncoder #21988
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.
Just a quick suggestion for a usability improvement in the error message both other than that, LGTM!
Maybe a short example in the docstring:
|
In the User Guide l.540 of
|
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
Reference Issues/PRs
Related to #21967
What does this implement/fix? Explain your changes.
This PR adds
encoded_missing_value
toOrdinalEncoder
. Similar tounknown_value
,encoded_missing_value
is not allowed to be one of the encoding used by a known category.CC @glemaitre