Skip to main content

Lightweight reconciliation tests for dataframes

Project description

recx

DataFrame reconciliation utilities for Python / pandas.

recx helps you compare a candidate pandas.DataFrame against a baseline using declarative, column-level checks (exact equality, absolute tolerance, relative tolerance, or custom logic). It produces structured results you can assert on in tests or render as a concise textual summary.

Status: Early, experimental. API may change.

Installation

pip install recx

Features

  • Index presence checks (missing + extra index values) out of the box
  • Built-in column checks:
    • EqualCheck -- exact equality (treats aligned NaNs as equal)
    • AbsTolCheck -- absolute error within tolerance (optional sort of failures)
    • RelTolCheck -- relative error within tolerance (optional sort of failures)
  • Rich per-check results (CheckResult) and aggregate (RecResult).
  • Easy to extend: implement a single check method on a ColumnCheck subclass

Feel free to open issues or PRs with suggestions or improvements.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

recx-0.0.0rc1.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

recx-0.0.0rc1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file recx-0.0.0rc1.tar.gz.

File metadata

  • Download URL: recx-0.0.0rc1.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.13

File hashes

Hashes for recx-0.0.0rc1.tar.gz
Algorithm Hash digest
SHA256 b3dea66d08ae9d1bd21d0ec06083eb34962a171d691c8deb8a723994c6389f07
MD5 e4499a9f927aba07e1c23596e1c4ce6b
BLAKE2b-256 9ba901bba21d028a1d828d30a1ce1a044bc591b2e33dd6312610838a4807f6f0

See more details on using hashes here.

File details

Details for the file recx-0.0.0rc1-py3-none-any.whl.

File metadata

  • Download URL: recx-0.0.0rc1-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.13

File hashes

Hashes for recx-0.0.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 1bc235cb97c3c5c8e29c63e8fda4a89758721ad96527689e6df6ddc214d062ce
MD5 c4e2677b11c1b72cbfdf7c2d8605238e
BLAKE2b-256 807b48a3b8210f0b1c94fe9099a02a76759532aceb4dcc4e7278120051222060

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page