AttributeError: module 'pandas' has no attribute 'rolling_mean'

原文鏈接:https://blog.csdn.net/kdongyi/article/details/83383648

使用這句代碼: temp = pd.rolling_mean(temp, 2) 會報以下錯誤:

AttributeError: module ‘pandas’ has no attribute ‘rolling_mean’
解決方法:
                    將代碼改爲:temp = temp .rolling(2).mean()

版權聲明:本文爲CSDN博主「清晨的光明」的原創文章,遵循CC 4.0 by-sa版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/kdongyi/article/details/83383648

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章