Skip to content

v2.9.0 — Reliability hardening

Choose a tag to compare

@devlprkhan devlprkhan released this 10 Nov 13:18
· 16 commits to main since this release
994ffbe

2.9.0 — Reliability hardening

This release hardens the paths that already exist rather than adding another data primitive.

Added

  • ColumnSpec(required=...) marks a contract column as required or optional.
  • ArtifactCompatibilityError is raised by DataCleaner.load() when a saved artifact has an incompatible artifact format or library major version. Use allow_incompatible=True to load it with a warning, or verify_version=False to skip the check.
  • iter_csv_safe() streams a large CSV in typed chunks and yields one (frame, IngestionReport) pair per chunk, using bounded memory.
  • CleanerConfig.outlier_columns names the numeric columns that may be capped. When set it acts as an allowlist and overrides cap_outliers.
  • read_csv_safe() emits an integer_precision warning for integer values beyond 2^53 that are coerced to float64.

Changed

  • DataCleaner.fit() now validates an explicit contract before learning and raises ValueError when a required training column is missing. Columns with required=False or role="ignore" may be absent.
  • diagnose_join() computes matched and unmatched rows from grouped key frequencies, so duplicated keys no longer expand into a many-to-many join.
  • Outlier clipping is now opt-in: CleanerConfig.cap_outliers defaults to False. Set it to True, or list outlier_columns, to keep the previous clipping behavior.
  • CSV ingestion normalizes blank cells in place instead of copying the whole frame.
  • The public API is documented in stable, experimental, and internal tiers with a deprecation policy. data_cleaner.__all__ is the canonical surface.
  • Refined the documentation site chrome and navigation.

Migration notes

  • If you relied on outlier clipping, set cap_outliers=True or list the columns in outlier_columns.
  • Incompatible artifacts now raise by default. Retrain and resave, or pass allow_incompatible=True only if you accept the risk.

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