小编use*_*247的帖子

AttributeError:'Series'对象没有'rolling'属性

Traceback (most recent call last):
  File "mov_avg.py", line 9, in <module>
    data_frame['100ma']= data_frame['Adj Close'].rolling(window=100, min_periods=0).mean()
  File "/usr/lib/python3/dist-packages/pandas/core/generic.py", line 2360, in __getattr__
    (type(self).__name__, name))
AttributeError: 'Series' object has no attribute 'rolling'
Run Code Online (Sandbox Code Playgroud)

python pandas

6
推荐指数
1
解决办法
3426
查看次数

标签 统计

pandas ×1

python ×1