Skip to content

BUG: Multiple unstack using row index level labels and multi level columns DataFrame #32990

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 7 commits into from
Mar 26, 2020

Conversation

phofl
Copy link
Member

@phofl phofl commented Mar 24, 2020

This should fix the issue with a long list of indices and unstack. The issue appeared with 6 indices for the first time.

@simonjayhawkins
Copy link
Member

Thanks @phofl This also fixes #24729 and maybe others. can you add a test for those and also add a what's new.

@simonjayhawkins simonjayhawkins changed the title Bugfix unstack BUG: Multiple unstack using row labels in multi level columns DataFrame Mar 25, 2020
@simonjayhawkins simonjayhawkins changed the title BUG: Multiple unstack using row labels in multi level columns DataFrame BUG: Multiple unstack using row index level labels and multi level columns DataFrame Mar 25, 2020
@simonjayhawkins simonjayhawkins added Bug MultiIndex Reshaping Concat, Merge/Join, Stack/Unstack, Explode labels Mar 25, 2020
@simonjayhawkins
Copy link
Member

This also fixes #24729 and maybe others.

also fixes #28306

@phofl
Copy link
Member Author

phofl commented Mar 25, 2020

I'll add the tests in the evening

@phofl
Copy link
Member Author

phofl commented Mar 25, 2020

Added the tests for both issues and the whats new entry.

Reverted the typo fix. I'll add a pull request separately for this shortly

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.

lgtm. @TomAugspurger @jbrockmendel if you want to have a look and merge when ok

@simonjayhawkins simonjayhawkins added this to the 1.1 milestone Mar 26, 2020
@TomAugspurger TomAugspurger merged commit e7ee418 into pandas-dev:master Mar 26, 2020
@TomAugspurger
Copy link
Contributor

Thanks @phofl!

@phofl phofl deleted the bugfix_unstack branch March 26, 2020 22:46
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
5 participants