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.