--- id: pmdarima version: "2.1.1" license: MIT license_treatment: permissive maintenance: aging --- # pmdarima — Python's forecast::auto.arima equivalent License: permissive · Maintenance: aging · Downloads: 3.3M/mo ## What it is and what it does Pmdarima is a statistical library that brings R's auto.arima forecasting capability to Python with a scikit-learn-style API. It wraps statsmodels internally but presents a more accessible interface for developers familiar with scikit-learn's estimator and pipeline patterns. The package includes automated ARIMA order selection, stationarity and seasonality tests, time series transformations (Box-Cox, Fourier), seasonal decomposition, cross-validation utilities, and built-in datasets for prototyping. You use it to fit forecasting models on historical time series data and generate predictions for future periods. It supports both simple auto-ARIMA calls and complex preprocessing pipelines with multiple transformers. The library targets financial, insurance, and research domains where time series forecasting is central. Its main dependencies—numpy, pandas, scikit-learn, scipy, statsmodels—are standard in the data science ecosystem, making it a natural fit for projects already using those tools. Use it for: - Automatically select optimal ARIMA parameters and fit a forecasting model without manual hyperparameter tuning. - Build a preprocessing pipeline combining Box-Cox transformation with seasonal ARIMA for improved forecast accuracy. - Serialize and deploy a fitted time series model to production using pickle, then load and predict on new data. - Detect and handle seasonality in sales, demand, or financial data using seasonal decomposition and m-parameter tuning. - Perform cross-validation on time series splits to evaluate model generalization before deployment. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Pmdarima provides automated ARIMA time series forecasting with a scikit-learn-compatible interface, wrapping statsmodels to deliver R's auto.arima functionality in Python. Yes, if you need automated ARIMA forecasting with scikit-learn integration. The package is mature, well-maintained, MIT-licensed, and widely downloaded (top 5000 PyPI). Install friction is moderate due to multiple dependencies and potential C compilation, but prebuilt wheels for Python 3.10+ on major platforms mitigate this. No known security vulnerabilities. Suitable for production time series work in finance, insurance, and research. ## Install pip install pmdarima uv add pmdarima poetry add pmdarima ## Installing pmdarima Before you install: Medium install friction due to 10 runtime dependencies including Cython, numpy, pandas, scikit-learn, scipy, and statsmodels. The package is aging (270 days since last release) but maintains an active repository with 1733 stars and recent commits. Prebuilt wheels available for Python 3.10–3.13 on major platforms reduce compilation burden. License in practice: Licensed under MIT (permissive), allowing use in commercial and proprietary projects without restriction, though attribution is customary. Quickstart: pip install pmdarima import pmdarima as pm from pmdarima.model_selection import train_test_split y = pm.datasets.load_wineind() train, test = train_test_split(y, train_size=150) model = pm.auto_arima(train, seasonal=True, m=12) forecasts = model.predict(test.shape[0]) Requires Python 3.10 or later. If a prebuilt wheel is unavailable for your platform, building from source requires Cython >= 0.29 and a C compiler (gcc/Clang on Mac/Linux, MinGW on Windows). Verify before relying: - Whether the package's aging status (270 days since release) reflects maintenance slowdown or stable maturity. - Performance characteristics on large datasets or high-frequency time series. - Compatibility of serialized models across pmdarima versions when using pickle. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: medium - Maintenance: aging - Downloads: 3.3M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags time series forecasting, auto arima python, arima model selection, seasonal time series, automated forecasting, time series decomposition, arima pipeline, time-series-forecasting, arima, scikit-learn-compatible [View on SkillFed](https://skillfed.io/packages/pmdarima) · [View on PyPI](https://pypi.org/project/pmdarima/)