mean

Rolling.mean()

Calculate the rolling mean of the DataFrame.

Returns

DataFrame

A DataFrame containing the rolling mean values.

Examples

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