xdas.cumsum#
- xdas.cumsum(da, dim='last', *, skipna=True, **kwargs)[source]#
Return the cumulative sum of elements along a given dimension.
- Parameters:
da (DataArray) – Input data.
dim (str, optional) – Dimension along which the cumulative sum 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 sum of the input data.
- Return type: