![](/img/trans.png)
[英]How to properly set start/end params of statsmodels.tsa.ar_model.AR.predict function
[英]statsmodles AR model error when calling params
對statsmodels不熟悉,嘗試使用statsmodels.tsa.ar_model來適應大熊貓的時間序列。
#pull one series from dataframe
y=data.sentiment
armodel=sm.tsa.ar_model.AR(y, freq='D').fit()
armodel.params()
收到以下錯誤:
C:\Python27\lib\site-packages\pandas\lib.pyd in pandas.lib.SeriesIndex.__set__ (pandas\lib.c:27817)()
AssertionError: Index length did not match values
有任何想法嗎?
如果可以,您應該升級到當前主站。 這是在這里修復的。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.