🍾 Xarray is now 10 years old! 🎉

xarray.Dataset.combine_first

xarray.Dataset.combine_first#

Dataset.combine_first(other)[source]#

Combine two Datasets, default to data_vars of self.

The new coordinates follow the normal broadcasting and alignment rules of join='outer'. Vacant cells in the expanded coordinates are filled with np.nan.

Parameters:

other (Dataset) – Used to fill all matching missing values in this array.

Returns:

Dataset