pip install nixtlats

How to use

Just import the library, set your credentials, and start forecasting in two lines of code!

df = pd.read_csv('')
from nixtlats import NixtlaClient
nixtla_client = NixtlaClient(
    # defaults to os.environ.get("NIXTLA_API_KEY")
    api_key = 'my_api_key_provided_by_nixtla'
fcst_df = nixtla_client.forecast(df, h=24, level=[80, 90])
INFO:nixtlats.nixtla_client:Validating inputs...
INFO:nixtlats.nixtla_client:Preprocessing dataframes...
INFO:nixtlats.nixtla_client:Inferred freq: H
INFO:nixtlats.nixtla_client:Restricting input...
INFO:nixtlats.nixtla_client:Calling Forecast Endpoint...
nixtla_client.plot(df, fcst_df, level=[80, 90], max_insample_length=24 * 5)