Course Content

# Python for Data Science: Time Series Essentials

Python for Data Science: Time Series Essentials

## Rolling

The `rolling`

method in Python is used to create a `rolling`

`window`

of a certain size on a time series or other data. It takes one or more parameters: the window size, and optionally the type of window (e.g. boxcar, hamming, etc.). It returns a new object that behaves like a moving window on the original data. You can then perform various operations on this windowed data, such as calculating the mean, sum, or standard deviation.

# Task

- Create a
`rolling window`

of size`3`

; - Calculate the
`rolling_mean`

; - Print the variable.

Everything was clear?

Section 1. Chapter 7