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

Method prod

dask/array/core.py:2618–2636  ·  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

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