AttributeError: module 'pandas' has no attribute 'rolling_mean' 报错解决方法
程序员文章站
2022-03-26 23:19:41
...
使用这句代码: temp = pd.rolling_mean(temp, 2) 会报以下错误:
AttributeError: module 'pandas' has no attribute 'rolling_mean'
解决方法:
将代码改为:temp = temp .rolling(2).mean()
推荐阅读
-
AttributeError: module ‘community‘ has no attribute ‘best_partition‘ 问题解决方法
-
【Tensorflow】Linux下Tensorflow报错:AttributeError: module ‘tensorflow‘ has no attribute ‘xxxx‘
-
pycharm安装 suds模块报错:AttributeError: module 'pip' has no attribute 'main'
-
运行sqlmap提示AttributeError: 'module' object has no attribute 'HTTPSHandler'解决方法
-
python报错:AttributeError: 'module' object has no attribute 'xfeatures2d'
-
AttributeError: module ‘community‘ has no attribute ‘best_partition‘ 问题解决方法
-
python错误:AttributeError: 'module' object has no attribute 'setdefaultencoding'问题的解决方法
-
python多线程下报错:AttributeError: 'module' object has no attribute '_strptime'
-
【Tensorflow】Linux下Tensorflow报错:AttributeError: module ‘tensorflow‘ has no attribute ‘xxxx‘
-
python错误:AttributeError: 'module' object has no attribute 'setdefaultencoding'问题的解决方法