spectrochempy.transpose๏ƒ

transpose(*dims, inplace=False)[source]๏ƒ

Permute the dimensions of a NDDataset.

Parameters:
  • *dims (sequence of dimension indexes or names, optional) โ€“ By default, reverse the dimensions, otherwise permute the dimensions according to the values given.

  • inplace (bool, optional, default=`False`) โ€“ Flag to say that the method return a new object (default) or not (inplace=True).

Returns:

NDDataset โ€“ Transposed NDDataset.

See also

swapdims

Interchange two dimensions of a NDDataset.