我是靠谱客的博主 俊秀哑铃,最近开发中收集的这篇文章主要介绍AttributeError: module 'pandas' has no attribute 'rolling_mean' 报错解决方法,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
使用这句代码: temp = pd.rolling_mean(temp, 2) 会报以下错误:
AttributeError: module 'pandas' has no attribute 'rolling_mean'
解决方法:
将代码改为:temp = temp .rolling(2).mean()
觉得有用请留下你的赞 ^_^
最后
以上就是俊秀哑铃为你收集整理的AttributeError: module 'pandas' has no attribute 'rolling_mean' 报错解决方法的全部内容,希望文章能够帮你解决AttributeError: module 'pandas' has no attribute 'rolling_mean' 报错解决方法所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复