出错情况
使用这句代码: temp = pd.rolling_mean(temp, 2) 会报以下错误:
AttributeError: module 'pandas' has no attribute 'rolling_mean'
解决方法
将代码改为:temp = temp .rolling(2).mean()
使用这句代码: temp = pd.rolling_mean(temp, 2) 会报以下错误:
AttributeError: module 'pandas' has no attribute 'rolling_mean'
将代码改为:temp = temp .rolling(2).mean()