python - Statsmodels version 0.6.1 does not include tsa? -


i'm trying hp-filter working using statsmodels (sm).

the documentation here implies module sm.tsa exists 0.6.1, following error:

>>> import statsmodels sm >>> sm.__version__ '0.6.1' >>> sm.tsa.filters.hp_filter.hpfilter() traceback (most recent call last):   file "<input>", line 1, in <module> attributeerror: 'module' object has no attribute 'tsa' >>> sm.tsa traceback (most recent call last):   file "<input>", line 1, in <module> attributeerror: 'module' object has no attribute 'tsa' 

here's pip output:

nat-oitwireless-inside-vapornet100-a-14423:prog2 foobar$ pip show statsmodels --- name: statsmodels version: 0.6.1 location: /usr/local/lib/python2.7/site-packages/statsmodels-0.6.1-py2.7-macosx-10.9-x86_64.egg requires:  

you need import statsmodels.api sm


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -