Repository navigation
v2.9.0 — Reliability hardening
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.ArtifactCompatibilityErroris raised byDataCleaner.load()when a saved artifact has an incompatible artifact format or library major version. Useallow_incompatible=Trueto load it with a warning, orverify_version=Falseto 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_columnsnames the numeric columns that may be capped. When set it acts as an allowlist and overridescap_outliers.read_csv_safe()emits aninteger_precisionwarning for integer values beyond2^53that are coerced tofloat64.
Changed
DataCleaner.fit()now validates an explicit contract before learning and raisesValueErrorwhen a required training column is missing. Columns withrequired=Falseorrole="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_outliersdefaults toFalse. Set it toTrue, or listoutlier_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=Trueor list the columns inoutlier_columns. - Incompatible artifacts now raise by default. Retrain and resave, or pass
allow_incompatible=Trueonly if you accept the risk.
Full changelog: https://github.com/devlprkhan/universal-data-cleaner/blob/main/CHANGELOG.md