-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[MRG] Sorting ordering option in OrdinalEncoder #14984
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
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.
Please add a test for the warning functionality
Added. Thanks |
Please change the title to describe the change. The PR title will become the commit message once merged. |
oh... Thanks. Edited. |
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 wonder if categories='sort' would be better than categories='lexicographic'. I also suspect that this deserves an update to doc/modules/preprocessing.rst
.
Apologies for delayed response. I have incorporated both the suggestions. Kindly let me know your feedback. Unfortunately, the string |
What issues? I don't see any valid reason as to why using "sort" as an option name would not work. |
Sorry, My bad. It was not working Now, it is working fine. Thanks for your inputs. |
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 had intended to review today anyway. Thanks!
I think that #14984, #15050, and #15396 might not be blockers for 0.22 and I would move them for 0.23. I think that it could be great to have a single issue (superseded #14953, #14954) to discuss the overall behaviour for |
FYI I wrote for students a Count based OrdinalEncoder recently: https://gist.github.com/agramfort/4873f16d78fde33f0caa482febf08211 maybe it helps |
A count based encoder sounds interesting, but isn't the point of this pr.
|
Could you please help me with type of entry, which I need to mention in what's new entry? |
It's an API entry: we are providing a new way to access existing functionality |
removing from the milestone. |
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 think this is looking pretty good... but maybe it's lacking consensus on whether it's the right way forward.
A fresh PR might be a better way to go here. |
Reference Issues/PRs
Fixes #14954
What does this implement/fix?
Added the option
categories='lexicographic'
and added corresponding warningAny other comments?