xarray.DataArray.assign_attrs¶
-
DataArray.
assign_attrs
(*args, **kwargs)¶ Assign new attrs to this object.
Returns a new object equivalent to self.attrs.update(*args, **kwargs).
- Parameters
- argspositional arguments passed into
attrs.update
. - kwargskeyword arguments passed into
attrs.update
.
- argspositional arguments passed into
- Returns
- assignedsame type as caller
A new object with the new attrs in addition to the existing data.
See also