0

Iam doing Time series forecasting by SARIMAX model. Code which I ran for the programming was

import statsmodels.api as sm
fit1 = sm.tsa.statespace.SARIMAX( train_original.Count, order=(2, 1, 4),seasonal_order=(0,1,1,7)).fit()

train_original_Count data How I clear the error, kindly help, Thanks

Mustafa Aydın
  • 17,645
  • 4
  • 15
  • 38
sonia
  • 75
  • 1
  • 1
  • 9
  • Range Index object has no attribute end - error – sonia Jul 08 '21 at 12:06
  • 1
    Please [do not post images](https://meta.stackoverflow.com/questions/285551/why-not-upload-images-of-code-errors-when-asking-a-question) of your data. You can include [code that creates a dataframe or the output of `print(df)`](https://stackoverflow.com/questions/20109391/how-to-make-good-reproducible-pandas-examples) (or of a few rows and columns that allow to reproduce the example) – Cimbali Jul 08 '21 at 12:07

1 Answers1

0

Updating pandas version to 1.1.3 worked for me. Please try :

pip uninstall pandas -y

pip install pandas==1.1.3

Dharman
  • 30,962
  • 25
  • 85
  • 135