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

Method func

xarray/tests/test_dataset.py:6558–6563  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

6556 )
6557
6558 def func(arr):
6559 if "y" not in arr.dims:
6560 return arr
6561
6562 # drop attrs from coords
6563 return arr.mean(dim="y").drop_attrs()
6564
6565 expected = ds.mean(dim="y", keep_attrs=True)
6566 actual = ds.map(func, keep_attrs=True)

Callers 1

__call__Method · 0.45

Calls 2

drop_attrsMethod · 0.45
meanMethod · 0.45

Tested by

no test coverage detected