0

I am trying to create a revenue prediction model:

print(type(data))
<class 'pandas.core.series.Series'>

train, test = temporal_train_test_split(data, test_size = 217)
fh = np.arange(len(test)) + 1

ari = AutoARIMA()
ari.fit(train)

pred = ari.predict(fh)

I keep getting this error message

None of [Int64Index([  0,   1,   2,   3,   4,   5,   6,   7,   8,   9, ...
            207, 208, 209, 210, 211, 212, 213, 214, 215, 216],
           dtype='int64', length=217)] are in the [index]

Why is this happening and what is meant by index here?

desertnaut
  • 57,590
  • 26
  • 140
  • 166

0 Answers0