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

Function nanmean

xarray/computation/nanops.py:122–131  ·  view source on GitHub ↗
(a, axis=None, dtype=None, out=None)

Source from the content-addressed store, hash-verified

120
121
122def nanmean(a, axis=None, dtype=None, out=None):
123 if a.dtype.kind == "O":
124 return _nanmean_ddof_object(0, a, axis=axis, dtype=dtype)
125
126 with warnings.catch_warnings():
127 warnings.filterwarnings(
128 "ignore", r"Mean of empty slice", category=RuntimeWarning
129 )
130
131 return nputils.nanmean(a, axis=axis, dtype=dtype)
132
133
134def nanmedian(a, axis=None, out=None):

Callers

nothing calls this directly

Calls 1

_nanmean_ddof_objectFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…