pandas.DataFrame.swapaxes

DataFrame.swapaxes(self: ~ FrameOrSeries, axis1, axis2, copy=True) → ~FrameOrSeries[source]

Interchange axes and swap values axes appropriately.

Returns
ysame as input