pandas.DataFrame.swaplevel — pandas 0.16.2 documentation (original) (raw)
DataFrame.swaplevel(i, j, axis=0)¶
Swap levels i and j in a MultiIndex on a particular axis
Parameters: | i, j : int, string (can be mixed) Level of index to be swapped. Can pass level name as string. |
---|---|
Returns: | swapped : type of caller (new object) |