Warning

You are reading the documentation related to the development version. Go here if you are looking for the documentation of the stable release.

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.