cf.Field.swapaxes¶
- Field.swapaxes(axis0, axis1, inplace=False, i=False)[source]¶
Interchange two axes of the data.
See also
- Parameters:
- Returns:
Examples
>>> f.shape (1, 2, 3) >>> f.swapaxes(1, 0).shape (2, 1, 3) >>> f.swapaxes(0, -1).shape (3, 2, 1) >>> f.swapaxes(1, 1).shape (1, 2, 3) >>> f.swapaxes(-1, -1).shape (1, 2, 3)