A rolling window computes a statistic over the last n observations at each point: moving average, moving standard deviation, maximum. It smooths noise and brings out the trend. The first rows are empty for lack of data, and the window must use only the past to avoid any leakage.
Example
df['ventes'].rolling(window=7).mean()