You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1st first first second 1st
bar bar bar two bar 1.985984
one bar -0.175834
baz baz two bar 1.089335
one bar -1.447996
foo foo one bar 1.154403
two bar -0.112992
baz bar bar one baz 0.528254
two baz -2.052733
baz baz one baz -0.447332
two baz -0.818858
foo foo one baz -0.939259
two baz -1.282821
foo bar bar two foo 2.075440
one foo -0.423804
baz baz one foo 0.250846
two foo 0.177904
foo foo two foo -0.468794
one foo -0.627487
Name: one, dtype: float64
expected result can be obtained by resetting the index:
The issue is a problem because the resulting index now contains unnecessary duplicates. The behaviour is also not consistent with when all the columns are grouped by:
first second 1st
bar one bar -0.175834
baz 0.528254
foo -0.423804
two bar 1.985984
baz -2.052733
foo 2.075440
baz one bar -1.447996
baz -0.447332
foo 0.250846
two bar 1.089335
baz -0.818858
foo 0.177904
foo one bar 1.154403
baz -0.939259
foo -0.627487
two bar -0.112992
baz -1.282821
foo -0.468794
Name: one, dtype: float64
Pandas version 0.20.3
The text was updated successfully, but these errors were encountered:
To reproduce:
output:
expected result can be obtained by resetting the index:
The issue is a problem because the resulting index now contains unnecessary duplicates. The behaviour is also not consistent with when all the columns are grouped by:
Out:
Pandas version 0.20.3
The text was updated successfully, but these errors were encountered: