DataFrame.rolling(window, min_periods=None, freq=None, center=False, win_type=None, on=None, axis=0) [source]
Provides rolling window calculcations. New in version 0.18.0. Parameters:
window : int, or offset Size of the moving window. This is the number of observations used for calculating the statistic. Each window will be a fixed size. If its an offset then this will be the time period of each window. Each window will be a variable sized based on the observations included in the time-