sum

Rolling.sum()

Calculate the rolling sum of the DataFrame.

Returns

DataFrame

A DataFrame containing the rolling sum values.

Examples

>>> rolling = Rolling(df, window=3)
>>> rolling.sum()