Код: Выделить всё
import statsmodels.api as sm
fit = sm.tsa.statespace.SARIMAX(train).fit()
sarima = fit.forecast()
Код: Выделить всё
y
ds
2015-01-07 1
2015-01-14 64
2015-01-21 16
2015-01-28 50
2015-02-04 7
Код: Выделить всё
/usr/local/lib/python3.6/dist-packages/statsmodels/tsa/base/datetools.py in
_date_from_idx(d1, idx, freq)
84 offset. For now, this needs to be taken care of before you get
here.
85 """
---> 86 return _maybe_convert_period(d1) + int(idx) *
_freq_to_pandas[freq]
87
88
TypeError: unsupported operand type(s) for *: 'int' and 'NoneType'
Подробнее здесь: https://stackoverflow.com/questions/534 ... ot-execute