MCPcopy
hub / github.com/pydata/xarray / test_weighted

Method test_weighted

xarray/tests/test_duck_array_wrapping.py:313–315  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

311 assert isinstance(result.data, self.Array)
312
313 def test_weighted(self):
314 result = self.x.weighted(self.x.fillna(0)).mean()
315 assert isinstance(result.data, self.Array)
316
317 def test_coarsen_construct(self):
318 result = self.x.coarsen(x=2, boundary="pad").construct(x=["a", "b"])

Callers

nothing calls this directly

Calls 3

meanMethod · 0.45
weightedMethod · 0.45
fillnaMethod · 0.45

Tested by

no test coverage detected