module 'pandas' has no attribute 'rolling_mean'

change:

moving_avg = pd.rolling_mean(ts_log,12)

to:

moving_avg = ts_log.rolling(12).mean()
posted @ 2021-02-22 09:48  emanlee  阅读(1022)  评论(0)    收藏  举报