python time series rolling window exp moving average forecast code example
Example: pandas predict average moving
df['pandas_SMA_3'] = df.iloc[:,1].rolling(window=3).mean()
df['pandas_SMA_3'] = df.iloc[:,1].rolling(window=3).mean()