原因是pandas在0.20.0后移除这个方法
比较新的写法是用concat (点击链接直达官网查看详细介绍)来实现类似的功能
>>> s1 = pd.Series(['a', 'b'])
>>> s2 = pd.Series(['c', 'd'])
>>> pd.concat([s1, s2])
0 a
1 b
0 c
1 d
dtype: object
如果你因为配置环境等原因不得不使用append方法,你可以使用 _append 来替换append。
# 原代码:
forecast = data['arima_model'].append(forecast)
# 替换后:
forecast = data['arima_model']._append(forecast)