Table Of Contents

Search

Enter search terms or a module, class or function name.

pandas.Panel.swaplevel

Panel.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)