Back to Numerical Arrays (NumPy)
np.nancumprod
Return the cumulative product of array elements treating NaNs as one.
Syntax
np.nancumprod(a, axis?, dtype?)
Description
Return the cumulative product of array elements treating NaNs as one. The cumulative product does not change when NaNs are encountered and leading NaNs are replaced by ones.
Parameters
| Name | Description |
|---|---|
| a | - Input array |
| axis(optional) | - Axis along which to compute. null = flatten first |
| dtype(optional) | - Type of output array |
Returns
Promise<NDArray>