Skip to content

BUG: stacking multiple levels #7660

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

Closed
jreback opened this issue Jul 3, 2014 · 0 comments · Fixed by #7770
Closed

BUG: stacking multiple levels #7660

jreback opened this issue Jul 3, 2014 · 0 comments · Fixed by #7770
Labels
Bug Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented Jul 3, 2014

from #7653
cc @bluefir

df = DataFrame(np.random.randn(1000, 27), 
               columns=MultiIndex.from_tuples(list(
                                   itertools.product(xrange(3), repeat=3))))
df.stack(level=[1, 2])

should be equiv to:

df.stack(level=1).stack(level=1)

but is raising

@jreback jreback added this to the 0.15.0 milestone Jul 3, 2014
@jreback jreback modified the milestones: 0.15.0, 0.15.1 Jul 17, 2014
jreback added a commit that referenced this issue Jul 21, 2014
BUG: Fix for passing multiple ints as levels in DataFrame.stack() (#7660)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant