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

Function nanprod

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

reductionFunction · 0.90
onesMethod · 0.45

Tested by

no test coverage detected