1

I'm trying to follow a tutorial on time series analysis and have hit a hurdle early on. The "SARIMAX" library is unavailable using the following syntax, as per the statsmodels website:

import statsmodels.api as sm

sm.tsa.statespace.SARIMAX

I've also looked in e.g.:

sm.tsa.SARIMAX

Statespace is missing and so is SARIMAX in the other option. What am I doing wrong?

Using tab completion, I can't see any similar looking libraries (as a newbie to this field).

I'm using latest stable version: 0.6.1

Thank you in advance!

EB88
  • 841
  • 1
  • 10
  • 26
  • 1
    SARIMAX is not available in 0.6.1. You need to update to 0.8.0 – Josef Mar 04 '17 at 13:28
  • So I ran a "conda install statsmodels" and also conda update but still 0.6.1. What I don't understand is why this website: http://statsmodels.sourceforge.net/documentation.html isn't integrated with this website: https://pypi.python.org/pypi/statsmodels – EB88 Mar 04 '17 at 14:05
  • new documentation is at http://www.statsmodels.org/stable/index.html and development version at http://www.statsmodels.org/devel/index.html There are no redirects yet on the sourceforge site – Josef Mar 04 '17 at 17:44
  • I see you've never accepted an answer before - if you find any of your questions to be resolved by one of the provided answers, you can mark that answer as "accepted" with the green checkmark on the left. It is appreciated so that others know your issue was resolved by that answer. – miradulo Mar 05 '17 at 21:53
  • No one wrote an answer that was the answer. user333700 commented with the correct answer but I cannot see a way of accepting that as the top answer. – EB88 Mar 05 '17 at 23:06

1 Answers1

1

There is a typo in your import it should be:

import statsmodels.api as sm
ybl
  • 1,510
  • 10
  • 16