i'm trying to forecast a simple model
whenever i try to use the predict method i get the error ('The start argument could not be matched to a location related to the index of the data.')
can anyone please help ?
df_comp['Date'] = pd.to_datetime(df_comp['Date'])
df_comp= df_comp.set_index("Date")
size = int(len(df_comp)*0.8)
df, df_test = df_comp.iloc[:size], df_comp.iloc[size:]
model_ar = ARIMA(df.Fullmonth, order = (1,0,0))
results_ar = model_ar.fit()
start_date="2021-12-01"
end_date="2022-03-01"
df_pred_AR = results_ar.predict(start = start_date, end = end_date)
