Rolling window

Applies to: python, general

A rolling window computes a statistic over a moving slice of recent values.

s.rolling(7).mean()

See also: resampling, window-function