-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
sort_index not sorting when multi-index made by different categorical types #39986
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
ftrihardjo
commented
Feb 23, 2021
•
edited
Loading
edited
- closes sort_index not sorting when multi-index made by different categorical types #24271
- tests added / passed
- Ensure all linting tests pass, see here for how to run them
- whatsnew entry
Hello @ftrihardjo! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2021-03-13 05:02:37 UTC |
Hi @ftrihardjo - could you put "closes #24271" in the pull request description and put a descriptive title (e.g. the name of the issue) please? |
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.
pls also merge master
pandas/tests/groupby/test_groupby.py
Outdated
@@ -146,6 +146,33 @@ def func(dataf): | |||
assert isinstance(result, DataFrame) | |||
|
|||
|
|||
def test_multi_index_sort(): |
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.
can you rename to
test_sorting_with_different_categoricals
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.
move to test_categorical.py (same directory)
thanks @ftrihardjo |