ValueError: SARIMAX models require univariate `endog`. Got shape (88, 2)

Viewed 33

My Dataframe(train) look like this

            total_mtrs   total_mtrs_2
trx_date        
2013-07-01  3449701.0   -1.362983
2013-08-01  3172872.0   -1.585093
2013-09-01  3137336.0   -1.613605
2013-10-01  3108550.0   -1.636701
2013-11-01  2981503.0   -1.738636
... ... ...
2020-06-01  4393613.0   -0.605648
2020-07-01  5173863.0   0.020375
2020-08-01  5629610.0   0.386038
2020-09-01  6417227.0   1.017972
2020-10-01  6424951.0   1.024169

I can perform every operation it cant show any error and compile successfully but then I train Time series model with this

arma_mod20 = ARIMA(train, order=(0,1,0)).fit()
print(arma_mod20.params)

It can shows an error.

ValueError: SARIMAX models require univariate `endog`. Got shape (88, 2).

I search on stack overflow and google as well I am unable to find any solution. I use ARIMA model but it throws an error of SARIMAX model.

0 Answers
Related