numpy.cumprod()
numpy.cumprod
-
numpy.cumprod(a, axis=None, dtype=None, out=None)
[source] -
Return the cumulative product of elements along a given axis.
Parameters: a : array_like
Input array.
axis : int, optional
Axis along which the cumulative product is computed. By default the input is flattened.
dtype : dtype, optional
Type of the returned array, as well as of the accumulator in which the elements are mul