Skip to content

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

Merged
merged 12 commits into from
Mar 15, 2021
Merged

sort_index not sorting when multi-index made by different categorical types #39986

merged 12 commits into from
Mar 15, 2021

Conversation

ftrihardjo
Copy link
Contributor

@ftrihardjo ftrihardjo commented Feb 23, 2021

@pep8speaks
Copy link

pep8speaks commented Feb 23, 2021

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

@MarcoGorelli
Copy link
Member

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?

@ftrihardjo ftrihardjo changed the title pandas-dev issue #24271 sort_index not sorting when multi-index made by different categorical types Feb 23, 2021
@jreback jreback added MultiIndex Testing pandas testing functions or related to the test suite Reshaping Concat, Merge/Join, Stack/Unstack, Explode labels Feb 25, 2021
@jreback jreback added this to the 1.3 milestone Feb 25, 2021
Copy link
Contributor

@jreback jreback left a 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

@@ -146,6 +146,33 @@ def func(dataf):
assert isinstance(result, DataFrame)


def test_multi_index_sort():
Copy link
Contributor

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

Copy link
Contributor

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)

@jreback jreback merged commit 60e9189 into pandas-dev:master Mar 15, 2021
@jreback
Copy link
Contributor

jreback commented Mar 15, 2021

thanks @ftrihardjo

JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MultiIndex Reshaping Concat, Merge/Join, Stack/Unstack, Explode Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sort_index not sorting when multi-index made by different categorical types
4 participants