xdas.cumprod#
- xdas.cumprod(da, dim='last', *, skipna=True, **kwargs)[source]#
Return the cumulative product of elements along a given dimension.
- Parameters:
da (DataArray) – Input data.
dim (str, optional) – Dimension along which the cumulative product is computed. Default is “last”.
skipna (bool, optional) – Whether to exclude NaN values (True) or include them (False) in the computation. Default is True.
**kwargs – Additional keyword arguments passed to the NumPy function.
- Returns:
Cumulative product of the input data.
- Return type: