Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
BUG: failing MultiIndex.set_levels with inplace=True still modifies original index #13754
Comments
jorisvandenbossche
added Bug MultiIndex
labels
Jul 22, 2016
This was referenced Jul 22, 2016
jreback
modified the milestone: 0.19.0, 0.19.1
Sep 27, 2016
jorisvandenbossche
closed this
in #14236
Oct 10, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jorisvandenbossche commentedJul 22, 2016
Small example:
Setting the levels with an incorrect levels (too short), fails (correctly of course):
When using
inplace=True, this also gives the same error message, but the index is actually changed to this inconsistent state:Just showing this
dfin the console did crash my session in the case above, in the example from #13741, it gave the error "IndexError: index 1 is out of bounds for axis 0 with size 1"