xarray.Dataset.set_coords¶
-
Dataset.
set_coords
(self, names: 'Union[Hashable, Iterable[Hashable]]', inplace: bool = None) → 'Dataset'¶ Given names of one or more variables, set them as coordinates
- Parameters
- nameshashable or iterable of hashables
Name(s) of variables in this dataset to convert into coordinates.
- inplacebool, optional
If True, modify this dataset inplace. Otherwise, create a new object.
- Returns
- Dataset
See also