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

Function nanprod

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

reductionFunction · 0.90
onesMethod · 0.45

Tested by

no test coverage detected