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

Method prod

dask/array/core.py:2621–2639  ·  view source on GitHub ↗

Return the product of the array elements over the given axis Refer to :func:`dask.array.prod` for full documentation. See Also -------- dask.array.prod : equivalent function

(self, axis=None, dtype=None, keepdims=False, split_every=None, out=None)

Source from the content-addressed store, hash-verified

2619 return trace(self, offset=offset, axis1=axis1, axis2=axis2, dtype=dtype)
2620
2621 def prod(self, axis=None, dtype=None, keepdims=False, split_every=None, out=None):
2622 """Return the product of the array elements over the given axis
2623
2624 Refer to :func:`dask.array.prod` for full documentation.
2625
2626 See Also
2627 --------
2628 dask.array.prod : equivalent function
2629 """
2630 from dask.array.reductions import prod
2631
2632 return prod(
2633 self,
2634 axis=axis,
2635 dtype=dtype,
2636 keepdims=keepdims,
2637 split_every=split_every,
2638 out=out,
2639 )
2640
2641 def mean(self, axis=None, dtype=None, keepdims=False, split_every=None, out=None):
2642 """Returns the average of the array elements along given axis.

Callers 15

apply_gufuncFunction · 0.45
setitemFunction · 0.45
_repr_html_Method · 0.45
_vindexMethod · 0.45
_compute_multiplierFunction · 0.45
auto_chunksFunction · 0.45
unify_chunksFunction · 0.45
_vindex_arrayFunction · 0.45
sizeMethod · 0.45
reshape_rechunkFunction · 0.45
reshape_blockwiseFunction · 0.45

Calls 1

prodFunction · 0.90

Tested by

no test coverage detected