# xarray.Dataset.cumulative

#### Dataset.cumulative(dim, min_periods=1)[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/dataset.py#L10609-L10652)

Accumulating object for Datasets

* **Parameters:**
  * **dim** ([iterable](https://docs.python.org/3/glossary.html#term-iterable) of [hashable](../user-guide/terminology.html.md#term-name)) – The name(s) of the dimensions to create the cumulative window along
  * **min_periods** ([`int`](https://docs.python.org/3/builtins/functions.html#int), *default*: `1`) – Minimum number of observations in window required to have a value
    (otherwise result is NA). The default is 1 (note this is different
    from `Rolling`, whose default is the size of the window).
* **Returns:**
  [`computation.rolling.DatasetRolling`](xarray.computation.rolling.DatasetRolling.html.md#xarray.computation.rolling.DatasetRolling)

#### SEE ALSO
[`DataArray.cumulative`](xarray.DataArray.cumulative.html.md#xarray.DataArray.cumulative), [`Dataset.rolling`](xarray.Dataset.rolling.html.md#xarray.Dataset.rolling), [`Dataset.rolling_exp`](xarray.Dataset.rolling_exp.html.md#xarray.Dataset.rolling_exp)
