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.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.