AttributeError: module ‘pandas’ has no attribute ‘rolling_mean’
AttributeError: module ‘pandas’ has no attribute ‘rolling_mean’
moving_avg = pd.rolling_mean(ts_log,12)
Error: AttributeError: module ‘pandas’ has no attribute ‘rolling_mean’
Solution:
moving_avg = ts_log.rolling(12).mean()