AI engineering glossary · NumPy pandas visualization
What is rolling window?
Rolling window (also called rolling, moving window): A pandas tool that applies a calculation, such as a mean, over a sliding block of the most recent rows. It smooths noisy data and shows trends; the first rows are NaN until the window is full unless min_periods is set.
Rolling window: an example
df['sales'].rolling(7).mean() gives a 7-day moving average of daily sales.
Related terms
More NumPy pandas visualization terms
Where you learn it
Rolling window is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.