# What is the best way to do a seasonal ARMA (or ARIMA) in python?

Scikit learn and statsmodels don't seem to support this type of ARMA. I tried to use rpy2 python library, but that proved to be far too difficult to integrate, as my IDE was not able to recognize my R_HOME directory.

Is there another way to do a SARIMA? I have all my data in pandas dataframes, by the way.

Thanks.

• If you know how to write the model yourself, you can try Stan/Pystan. Basic ARMA/AR models are relatively easy to program. – Nate Oct 24 '14 at 12:05

To do so, you will need to have Numpy, Scipy, Cython, Pandas and Statsmodels available on your system, download the source code from the Github repository, and then in the downloaded "statsmodels" folder, issue the command python setup.py install. This will overwrite your default statsmodels (so if you don't want that, you might consider making a virtualenv)