X13ARIMA & statsmodels: X13NotFoundError: x12a and x13as not found on path - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: X13ARIMA & statsmodels: X13NotFoundError: x12a and x13as not found on path (/thread-39017.html) |
X13ARIMA & statsmodels: X13NotFoundError: x12a and x13as not found on path - JaneTan - Dec-21-2022 I am on Window OS. I downloaded the Windows version of X13 software from https://www.census.gov/data/software/x13as.X-13ARIMA-SEATS.html#list-tab-635278563. I would like to use it with my Python code as below. But I get error: X13NotFoundError: x12a and x13as not found on path. Give the path, put them on PATH, or set the X12PATH or X13PATH environmental variable. import pandas as pd from pandas import Timestamp s = pd.Series( {Timestamp('2013-03-01 00:00:00'): 838.2, Timestamp('2013-04-01 00:00:00'): 865.17, Timestamp('2013-05-01 00:00:00'): 763.0}) import os os.chdir(r'C:\Users\user-name\Downloads\x13as_ascii-v1-1-b59\x13as') import statsmodels.api as sm sm.tsa.x13_arima_analysis(s) RE: X13ARIMA & statsmodels: X13NotFoundError: x12a and x13as not found on path - ndc85430 - Dec-24-2022 OK, so what is your question? Is it about setting environment variables? If so, that's a Windows question, rather than a Python one. If you want to specify the path to the executable, then you'll need to consult the documentation for the library to see how it lets you do that. |