xarray.core.rolling.DataArrayRolling.reduce

DataArrayRolling.reduce(func, **kwargs)

Reduce the items in this group by applying func along some dimension(s).

Parameters
funcfunction

Function which can be called in the form func(x, **kwargs) to return the result of collapsing an np.ndarray over an the rolling dimension.

**kwargsdict

Additional keyword arguments passed on to func.

Returns
reducedDataArray

Array with summarized data.