MCPcopy Create free account
hub / github.com/dask/dask / nansum

Function nansum

dask/array/reductions.py:178–192  ·  view source on GitHub ↗
(a, axis=None, dtype=None, keepdims=False, split_every=None, out=None)

Source from the content-addressed store, hash-verified

176
177@derived_from(np)
178def nansum(a, axis=None, dtype=None, keepdims=False, split_every=None, out=None):
179 if dtype is not None:
180 dt = dtype
181 else:
182 dt = getattr(chunk.nansum(np.ones((1,), dtype=a.dtype)), "dtype", object)
183 return reduction(
184 a,
185 chunk.nansum,
186 chunk.sum,
187 axis=axis,
188 keepdims=keepdims,
189 dtype=dt,
190 split_every=split_every,
191 out=out,
192 )
193
194
195@derived_from(np)

Callers

nothing calls this directly

Calls 2

reductionFunction · 0.90
onesMethod · 0.45

Tested by

no test coverage detected