xarray.Dataset.update¶
-
Dataset.
update
(other, inplace=None)¶ Update this dataset’s variables with those from another dataset.
- Parameters
other (
Dataset
or mapping) – Variables with which to update this dataset. One of:Dataset
mapping {var name: DataArray}
mapping {var name: Variable}
mapping {var name: (dimension name, array-like)}
mapping {var name: (tuple of dimension names, array-like)}
- Returns
updated – Updated dataset.
- Return type
- Raises
ValueError – If any dimensions would have inconsistent sizes in the updated dataset.