pandas.DataFrame.swapaxes — pandas 2.2.3 documentation (original) (raw)
- API reference
- DataFrame
- pandas.DataF...
DataFrame.swapaxes(axis1, axis2, copy=None)[source]#
Interchange axes and swap values axes appropriately.
Deprecated since version 2.1.0: swapaxes
is deprecated and will be removed. Please use transpose
instead.
Returns:
same as input
Examples
Please see examples for DataFrame.transpose().