🍾 Xarray is now 10 years old! 🎉

xarray.core.groupby.DataArrayGroupBy.fillna

xarray.core.groupby.DataArrayGroupBy.fillna#

DataArrayGroupBy.fillna(value)[source]#

Fill missing values in this object by group.

This operation follows the normal broadcasting and alignment rules that xarray uses for binary arithmetic, except the result is aligned to this object (join='left') instead of aligned to the intersection of index coordinates (join='inner').

Parameters:

value – Used to fill all matching missing values by group. Needs to be of a valid type for the wrapped object’s fillna method.

Returns:

same type as the grouped object

See also

Dataset.fillna, DataArray.fillna