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

Function _nanvar_object

xarray/computation/nanops.py:144–149  ·  view source on GitHub ↗
(value, axis=None, ddof=0, keepdims=False, **kwargs)

Source from the content-addressed store, hash-verified

142
143
144def _nanvar_object(value, axis=None, ddof=0, keepdims=False, **kwargs):
145 value_mean = _nanmean_ddof_object(
146 ddof=0, value=value, axis=axis, keepdims=True, **kwargs
147 )
148 squared = (astype(value, value_mean.dtype) - value_mean) ** 2
149 return _nanmean_ddof_object(ddof, squared, axis=axis, keepdims=keepdims, **kwargs)
150
151
152def nanvar(a, axis=None, dtype=None, out=None, ddof=0):

Callers 1

nanvarFunction · 0.85

Calls 2

astypeFunction · 0.90
_nanmean_ddof_objectFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…