how to add column of simple moving average in existing date set of python code example
Example: rolling average df
df['pandas_SMA_3'] = df.iloc[:,1].rolling(window=3).mean()
df['pandas_SMA_3'] = df.iloc[:,1].rolling(window=3).mean()