Skip to content
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

BUG: DataFrame.join reordering index levels when joining on subset of levels #55370

Merged
merged 4 commits into from
Oct 4, 2023

Conversation

lukemanley
Copy link
Member

@lukemanley lukemanley added Bug Reshaping Concat, Merge/Join, Stack/Unstack, Explode MultiIndex labels Oct 3, 2023
@lukemanley lukemanley added this to the 2.2 milestone Oct 3, 2023
@@ -338,7 +338,9 @@ Groupby/resample/rolling
Reshaping
^^^^^^^^^
- Bug in :func:`concat` ignoring ``sort`` parameter when passed :class:`DatetimeIndex` indexes (:issue:`54769`)
- Bug in :func:`merge` reordering index levels when merging on a subset of levels (:issue:`34133`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the failing tests, I think we should put this in the notable bug fixes

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to notable section

@mroeschke
Copy link
Member

I would be OK with fixing this behavior in 2.2 as a bug fix.

@mroeschke mroeschke merged commit 1c1bb85 into pandas-dev:main Oct 4, 2023
33 checks passed
@mroeschke
Copy link
Member

Thanks @lukemanley

@lukemanley lukemanley deleted the mi-join-subset-level-order branch November 16, 2023 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug MultiIndex Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Join of DataFrames with MultiIndex does not keep order of index
2 participants