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

Method test_dropna_extension_array

xarray/tests/test_dataarray.py:2002–2007  ·  view source on GitHub ↗
(self, extension_array)

Source from the content-addressed store, hash-verified

2000 ),
2001 )
2002 def test_dropna_extension_array(self, extension_array) -> None:
2003 srs: pd.Series = pd.Series(index=np.array([1, 2, 3]), data=extension_array)
2004 da = srs.to_xarray()
2005 filled = da.dropna("index")
2006 assert filled.dtype == srs.dtype
2007 assert (filled.values == srs.values[1:]).all()
2008
2009 def test_rename(self) -> None:
2010 da = xr.DataArray(

Callers

nothing calls this directly

Calls 2

dropnaMethod · 0.45
allMethod · 0.45

Tested by

no test coverage detected