MCPcopy Index your code
hub / github.com/pydata/xarray / combine_first

Method combine_first

xarray/core/dataset.py:6792–6809  ·  view source on GitHub ↗

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

(self, other: Self)

Source from the content-addressed store, hash-verified

6790 return new
6791
6792 def combine_first(self, other: Self) -> Self:
6793 """Combine two Datasets, default to data_vars of self.
6794
6795 The new coordinates follow the normal broadcasting and alignment rules
6796 of ``join='outer'``. Vacant cells in the expanded coordinates are
6797 filled with np.nan.
6798
6799 Parameters
6800 ----------
6801 other : Dataset
6802 Used to fill all matching missing values in this array.
6803
6804 Returns
6805 -------
6806 Dataset
6807 """
6808 out = ops.fillna(self, other, join="outer", dataset_join="outer")
6809 return out
6810
6811 def reduce(
6812 self,

Callers 3

test_combine_firstMethod · 0.95
test_combine_firstMethod · 0.45
test_combine_firstMethod · 0.45

Calls 1

fillnaMethod · 0.45

Tested by 3

test_combine_firstMethod · 0.76
test_combine_firstMethod · 0.36
test_combine_firstMethod · 0.36