spectrochempy.swapdims
- swapdims(dim1, dim2, inplace=False)[source]
Interchange two dimensions of a NDDataset.
- Parameters:
dim1 (int) – First axis.
dim2 (int) – Second axis.
inplace (bool, optional, default=`False`) – Flag to say that the method return a new object (default) or not (inplace=True).
- Returns:
NDDataset
– Swaped dataset.
See also
transpose
Transpose a dataset.