Memory issue while running ARIMA model

Question:

I am trying to run my ARIMA model and am getting the below error:-

MemoryError: Unable to allocate 52.4 GiB for an array with shape (83873, 83873) and data type 
float64

My python/anaconda is installed in the C drive and has somewhere around 110GB free space but still am getting this error. How do I resolve this?

Also below is my code:-

from statsmodels.tsa.arima_model import ARIMA
model=ARIMA(df['Sales'],order=(1,0,1))
model_fit=model.fit()

I tried to slice the dataframe for only 1 year of values, but still having issues.

Anaconda version is 3.8- 64 bit.

My dataframe looks like this-

enter image description here

It has somewhere around 83,873 rows.

Asked By: John

||

Answers:

I did a pivot transformation and it solved my issue.

Answered By: John
Categories: questions Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.