For users
apply_ufunc
For developers/contributors
Community
Return elements from self or other depending on cond.
cond (DataArray or Dataset) – Locations at which to preserve this objects values. dtypes have to be bool
DataArray
Dataset
other (scalar, DataArray or Dataset, optional) – Value to use for locations in this object where cond is False. By default, inserts missing values.
cond
same type as the grouped object
See also
Dataset.where