Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pymetrix-seasonal

Seasonal adjustment for pymetrix by the two programs statistical offices use. They are in a plugin because each needs software outside Python.

  • X-13ARIMA-SEATS (X13): the US Census Bureau's x13as program, run on a specification pymetrix writes. It supports X-11 or SEATS, an automatic or given ARIMA model, outliers, trading-day and Easter effects, and any other specification text.
  • TRAMO-SEATS (TramoSeats): as Eurostat's JDemetra+ 3 computes it, in Java. It uses one of JDemetra+'s specifications (RSA0 to RSAfull), changed by your settings, with known outliers and your own regressors.

STL and classical decomposition are in pymetrix itself.

Install

From the repository:

pip install -e "packages/pymetrix-seasonal[jdemetra]"     # [jdemetra] adds JPype, for TRAMO-SEATS
  • X-13: put the Census Bureau's x13as program on the PATH, or set X13PATH to its folder (https://www.census.gov/data/software/x13as.html).

  • TRAMO-SEATS: install Java 21 or later (for example Eclipse Temurin). Then fetch JDemetra+'s libraries once (about 7 MB, from Maven Central, each checked against its recorded SHA-1):

    python -c "import pymetrix_seasonal.jdemetra as j; j.install()"
    

    Offline, copy the jars to a folder named by JDPLUS_PATH.

Use

In the app, both appear under Data → Transform → Seasonal adjustment…, beside STL and classical decomposition. In Python:

from pymetrix import Dataset
from pymetrix_seasonal import X13, TramoSeats      # from pymetrix import X13 works too

data = Dataset.example("sample_monthly")
data = data.seasonal_adjust("retail", X13(trading=True, easter=8))
data = data.seasonal_adjust("ip", TramoSeats(spec="rsa4"))
data.variables["retail_sa"].extra                  # the program's version, its model and the outliers it found

Adjusted series are derived series: they are computed again when the data are revised. A project that used X-13 or TRAMO-SEATS opens without this plugin. That step is kept but not run, and the plugin is named.

How it is checked

  • X-13: the adjusted series equal x13as's own saved tables (D11, S11) for each option.
  • TRAMO-SEATS: checked against Eurostat's R interface to JDemetra+ (rjd3tramoseats) by the jdemetra-reference workflow.
  • Skipped tests: without x13as, or without Java and the jars, those tests are skipped.

License: BSD-3-Clause. JDemetra+'s libraries are EUPL 1.2 and are not shipped here.

Metadata

Release files for pymetrix-seasonal 0.1.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymetrix-seasonal 0.1.0a1
File Size Uploaded Provenance Actions
pymetrix_seasonal-0.1.0a1.tar.gz 30.6 kB With provenance Details for pymetrix_seasonal-0.1.0a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pymetrix-seasonal 0.1.0a1
File Interpreter ABI Platform Actions
pymetrix_seasonal-0.1.0a1-py3-none-any.whl Python 3 none any Details for pymetrix_seasonal-0.1.0a1-py3-none-any.whl

Total release size: 52.0 kB

Release files / pymetrix_seasonal-0.1.0a1.tar.gz

Download URL pymetrix_seasonal-0.1.0a1.tar.gz
Size 30.6 kB
Tags Source
SHA-256 checksum
How to use checksums
306244c9155688298b274d8048aebd499be6da2f6e9bc7a50532134605743b94
BLAKE2b-256 checksum
How to use checksums
44a77a33efbc2051796e010ea3ebdfedebf53e41a03b2bea249a0a6fc79f2175
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / pymetrix_seasonal-0.1.0a1-py3-none-any.whl

Download URL pymetrix_seasonal-0.1.0a1-py3-none-any.whl
Size 21.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e96ecdecf28d646f355a330cfc73ac967a02c8b7d4451d22b8a3461ab2a6f0c2
BLAKE2b-256 checksum
How to use checksums
4bfc0e0f66f2106b8af72e5b4582af1b3dca23e8cf3893ff1d449d121ac2710b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for pymetrix-seasonal 0.1.0a1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pymetrix_seasonal-0.1.0a1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page