larch.Dataset.dc.set_altnames#

Dataset.dc.set_altnames(altnames, inplace=False) Dataset#

Set the alternative names for this Dataset.

Parameters:
  • altnames (Mapping or array-like) – A mapping of (integer) codes to names, or an array or names of the same length and order as the alternatives already defined in this Dataset.

  • inplace (bool, default False) – When true, apply the transformation in-place on the Dataset, otherwise return a modified copy.

Returns:

xarray.Dataset – The modified Dataset. A value is returned regardless of whether inplace is True.