使用這句代碼: 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