module 'pandas' has no attribute 'rolling_mean'
时间: 2023-09-24 13:06:16 浏览: 58
求解报错:AttributeError:module ‘os’ has no attribute ‘exit’
The error message you received indicates that the 'rolling_mean' attribute does not exist in the 'pandas' module. This is likely because the attribute has been deprecated and replaced by 'rolling'.
You can try replacing 'rolling_mean' with 'rolling' in your code to see if that resolves the issue. For example, if you previously had:
```
df.rolling_mean(window=3)
```
You can change it to:
```
df.rolling(window=3).mean()
```
阅读全文