xarray.IndexVariable.transpose¶
-
IndexVariable.
transpose
(self, *dims) → 'Variable'¶ Return a new Variable object with transposed dimensions.
- Parameters
*dims (str, optional) – By default, reverse the dimensions. Otherwise, reorder the dimensions to this order.
- Returns
transposed – The returned object has transposed data and dimensions with the same attributes as the original.
- Return type
Notes
This operation returns a view of this variable’s data. It is lazy for dask-backed Variables but not for numpy-backed Variables.
See also
numpy.transpose()