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

Method combine_first

xarray/core/dataarray.py:3853–3869  ·  view source on GitHub ↗

Combine two DataArray objects, with union of coordinates. This operation follows the normal broadcasting and alignment rules of ``join='outer'``. Default to non-null values of array calling the method. Use np.nan to fill in vacant cells after alignment. Parameters

(self, other: Self)

Source from the content-addressed store, hash-verified

3851 return bfill(self, dim, limit=limit)
3852
3853 def combine_first(self, other: Self) -> Self:
3854 """Combine two DataArray objects, with union of coordinates.
3855
3856 This operation follows the normal broadcasting and alignment rules of
3857 ``join='outer'``. Default to non-null values of array calling the
3858 method. Use np.nan to fill in vacant cells after alignment.
3859
3860 Parameters
3861 ----------
3862 other : DataArray
3863 Used to fill all matching missing values in this array.
3864
3865 Returns
3866 -------
3867 DataArray
3868 """
3869 return ops.fillna(self, other, join="outer")
3870
3871 def reduce(
3872 self,

Callers 2

test_combine_firstMethod · 0.95
test_combine_firstMethod · 0.95

Calls 1

fillnaMethod · 0.45

Tested by 2

test_combine_firstMethod · 0.76
test_combine_firstMethod · 0.76