DataFrame.swapaxes(axis1: Axis, axis2: Axis, copy: bool_t | None = None) Self#

Interchange axes and swap values axes appropriately.

Deprecated since version 2.1.0(pandas): swapaxes is deprecated and will be removed. Please use transpose instead.

Return type

same as input


Please see examples for DataFrame.transpose().


This method has not been implemented yet. Xorbits will try to execute it with pandas.

This docstring was copied from pandas.core.frame.DataFrame.