# Calculating the short-window simple moving average short_rolling = data.rolling(window=20).mean() short_rolling.head(20)