Skip to content

v2.10.0 — Production correctness

Choose a tag to compare

@devlprkhan devlprkhan released this 12 Nov 16:39
· 10 commits to main since this release
a0759d6

Universal Data Cleaner 2.10.0

Production-correctness release. No new data-cleaning primitive; this version hardens the existing surface.

Concurrency-safe reporting

  • DataCleaner.transform_with_report(X) returns (cleaned_frame, DriftReport) for one batch without reading or writing shared state.
  • transform() stays backward compatible and documents drift_report_ as per-instance last-call state.

Numeric precision

  • CleanerConfig.preserve_integer_dtypes=True keeps integral columns as int64 when the learned fill value and outlier bounds are integral.
  • CleanerConfig.on_precision_loss supports "coerce", "warn", and "raise".
  • Detection is exact at the 2^53 boundary: representable values such as 2^53 + 2 stay intact, while 2^53 + 1 is flagged.

Artifact persistence

  • save() writes to a temporary file, validates it, then atomically replaces the target with os.replace. Failed saves keep the previous artifact and remove partial files.
  • load(..., strict_environment=True) turns pandas, NumPy, or scikit-learn major-version mismatches into ArtifactCompatibilityError; the default logs a warning.
  • Corrupt and truncated artifacts now raise ValueError with the underlying cause.

Chunked ingestion

  • iter_csv_safe() gains unique_tracking ("memory", "disk", or "auto"), unique_tracking_limit, and unique_tracking_path.
  • Disk tracking uses SQLite; "auto" migrates from memory once the limit is exceeded.
  • combine_ingestion_reports(reports, source=None) rolls per-chunk reports into one whole-file report.

Documentation

  • Updated cleaning, ingestion, production, artifact, API, README, changelog, and roadmap documentation.

Verification

  • Local gate: ruff, formatting, mypy, pytest, wheel/sdist build, and strict MkDocs build.
  • CI: lint, typecheck, tests on Python 3.10–3.13, compatibility on minimum/latest dependencies and pandas 3.x, build, installed-wheel smoke test, docs, and ci-success.

Full changelog: https://github.com/devlprkhan/universal-data-cleaner/blob/main/CHANGELOG.md