dpnp.ndarray.swapaxes

ndarray.swapaxes(axis1, axis2)

Interchange two axes of an array.

For full documentation refer to numpy.swapaxes.