pandas.DataFrame.swapaxes#

DataFrame.swapaxes(axis1, axis2, copy=None)[source]#

Interchange axes and swap values axes appropriately.

Returns
same as input