module 'pandas' has no attribute 'rolling_mean'

change:

moving_avg = pd.rolling_mean(ts_log,12)

to:

moving_avg = ts_log.rolling(12).mean()
原文地址:https://www.cnblogs.com/emanlee/p/14428526.html