MCPcopy
hub / github.com/dask/dask / nanprod

Function nanprod

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

Source from the content-addressed store, hash-verified

197
198@derived_from(np)
199def nanprod(a, axis=None, dtype=None, keepdims=False, split_every=None, out=None):
200 if dtype is not None:
201 dt = dtype
202 else:
203 dt = getattr(chunk.nansum(np.ones((1,), dtype=a.dtype)), "dtype", object)
204 return reduction(
205 a,
206 chunk.nanprod,
207 chunk.prod,
208 axis=axis,
209 keepdims=keepdims,
210 dtype=dt,
211 split_every=split_every,
212 out=out,
213 )
214
215
216@derived_from(np)

Callers

nothing calls this directly

Calls 2

reductionFunction · 0.90
onesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…