pandas.DataFrame.rolling — pandas 1.5.2 documentation

  Web

pandas.DataFrame.rolling# DataFrame. rolling (window, min_periods = None, center = False, win_type = None, on = None, axis = 0, closed = None, step = None, method = ‘single’) [source] # Provide rolling window calculations. Parameters window int, offset, or BaseIndexer subclass. Size of the moving window. If an integer, the fixed number of observations used for each window.

https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.rolling.html