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: unstack on unicode name level breaks #9856

Closed
jreback opened this issue Apr 11, 2015 · 1 comment · Fixed by #9875
Closed

BUG: unstack on unicode name level breaks #9856

jreback opened this issue Apr 11, 2015 · 1 comment · Fixed by #9875
Labels
Bug Reshaping Concat, Merge/Join, Stack/Unstack, Explode

Comments

@jreback
Copy link
Contributor

jreback commented Apr 11, 2015

xref #9650

In [62]: i = pd.MultiIndex(
    levels=[[u'foo', u'bar'], [u'one', u'two'], [u'a', u'b']],
    labels=[[0, 0, 1, 1], [0, 1, 0, 1], [1, 0, 1, 0]],
    names=[u'first', u'second', u'third'])

In [63]: s = pd.Series(0, index=i)

In [64]: s.unstack([1,2]).stack(0)
KeyError: 'Level t not found'
@jreback jreback added Bug Reshaping Concat, Merge/Join, Stack/Unstack, Explode Difficulty Novice labels Apr 11, 2015
@jreback jreback added this to the Next Major Release milestone Apr 11, 2015
@scari
Copy link
Contributor

scari commented Apr 13, 2015

Working on this.

scari added a commit to scari/pandas that referenced this issue Apr 13, 2015
scari added a commit to scari/pandas that referenced this issue Apr 13, 2015
cpcloud added a commit that referenced this issue Apr 14, 2015
BUG: unstack on unicode name level breaks #9856
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.

2 participants