Repository navigation
v2.11.0 — Large data and performance
Phase 2 of the roadmap: scale behavior is now measured, reproduced, and
documented before any claim is made about it.
Install
pip install universal-data-cleaner==2.11.0
# Parquet support
pip install "universal-data-cleaner[parquet]==2.11.0"Benchmark suite
benchmarks/run_benchmarks.py measures seven operations separately (ingest, fit,
transform, transform_with_report, transform_chunks, contract_check, validate)
across narrow, wide, and high-cardinality frames — 42 cases up to 2M rows.
- Each case runs in a fresh subprocess; runtime (
perf_counter, min of repeats,
no tracing) and peak memory (tracemallocaftergc.collect()) are measured in
separate phases. - Workloads are seeded and vectorized, so runs are reproducible.
- The JSON records library/Python/pandas/NumPy/scikit-learn versions, platform,
CPU count, and git commit, and is checkpointed after every case. - CI now runs a 10K-row smoke matrix, required by
ci-success.
Reference run: benchmarks/results/2.11.0-darwin-x86_64.json
(Python 3.13.5 x86_64, pandas 3.0.6, NumPy 2.5.4, scikit-learn 1.9.1, 16 logical CPUs).
New API
DataCleaner.transform_chunks(chunks)yields(cleaned, DriftReport)per chunk
without touching shared instance state, keeping one chunk in memory.combine_drift_reports(reports)rolls chunk reports into aTransformReport
with summed rows, chunk count, and concatenated findings, exposing the same
has_drift/errors/warnings/summary()/raise_if_errors()surface
asDriftReport.DriftReport.rowsrecords the batch size.read_parquet_safe()anditer_parquet_safe()add optional Parquet ingestion
(newparquetextra,pyarrow>=14) with the same contract audit, cross-batch
uniqueness tracking, and report aggregation as the CSV readers.
Changed
transform()no longer deep-copies its input and skips redundant column
selection and reindexing when the frame already matches the fitted schema. The
no-mutation guarantee is unchanged and covered by tests.docs/performance.mddocuments the methodology, the full measured matrix, the
sizing rule derived from it, and an explicit "what is not measured" section.
Measured highlights
| Workload | Result |
|---|---|
| Fit + transform, 2M rows × 10 columns | 7.7 s + 2.3 s, 620 MB traced peak |
| Fit + transform, 100K rows × 120 columns | 2.5 s + 1.1 s, 241 MB traced peak |
| Contract check + validate, 2M rows | 0.22 s + 0.06 s |
| Ingest 20M cells (2M × 10 CSV) | 123 s, 725 MB traced peak |
| Chunked transform, 8 chunks, 2M rows | same runtime, 5.8× lower traced peak |
Ingestion is cell-bound at ~150K cells/s and is the operation that decides whether
a single-batch workflow fits; transform holds 8.6–11M cells/s.
Verification
All CI jobs passed on PR #45: lint, typecheck, tests on Python 3.10–3.13, compat
(minimum / latest / pandas 3), build, installed wheel, docs, benchmark smoke, and
ci-success. Provenance verification for this release is recorded in the follow-up
documentation commit.