i have been trying to forcast data in jarvis cloud using the below code but everytime it throws an ValueError saying 0 is not in range, this code worked sometime back in jupyter notebook.
future_df['fore_log']= model_fit.forecast(steps=973)[0]
ValueError: 0 is not in range
The above exception was the direct cause of the following exception:
KeyError Traceback (most recent call last)
/tmp/ipykernel_691/3204408596.py in <module>
2 #future_df_len = 973
3 #for j in range(len(future_df)):
----> 4 future_df['fore_log']= model_fit.forecast(steps=973)[0]
5 #print(future_df.fore_log.head())
Also included is a screenshot of the code that ran successfully in a Jupyter notebook.