scipp.transpose

scipp.transpose(x, dims=None)

Transpose dimensions of a variable, an data array, or a dataset.

Parameters
  • x (VariableLike) – Object to transpose.

  • dims (Optional[Union[List[str], Tuple[str]]]) – List of dimensions in desired order. If default, reverses existing order.

Raises

If the dtype or unit does not match, or if the dimensions and shapes are incompatible.

Returns

The absolute values of the input.

Return type

VariableLike