dpnp.ndarray.swapaxes

ndarray.swapaxes(axis1, axis2)

Interchange two axes of an array.

Refer to dpnp.swapaxes for full documentation.