INPUT — what we fed the pipeline
- v1 shape
- 600 rows × 12 cols
- v2 shape
- 598 rows × 12 cols
- key_cols
- ['claim_id'] (primary key for row alignment)
- edits
- drop CLM-00001..05 · add CLM-00601..03 · bump CLM-00100 payment +10% · rename covid_flag → covid_flag_type
PROCESSING — what the pipeline does
table_diff(v1, v2, key_cols=['claim_id']) → TableDiffalign_columns : header similarity (SequenceMatcher, threshold 0.80) → schema layerdiff_rows : left/right join on claim_id → added / removed / changed / sameanalyze_column : dtype, null rate, distinct count, numeric stats per shared column
OUTPUT — what came back
- Schema changes
- 1 non-same
- Row summary
- {'added': 3, 'removed': 5, 'changed': 1, 'same': 595}
- Column analyses
- 12
renamed 'covid_flag' → 'covid_flag_type'
VERDICT — assertions
10 PASS out of 10
| PASS | Schema : 1 renamed column |
| PASS | Schema : rename covid_flag -> covid_flag_type |
| PASS | Schema : 0 added, 0 removed columns |
| PASS | Row : v1 = 600 rows |
| PASS | Row : v2 = 598 rows (600 - 5 + 3) |
| PASS | Row : 5 removed |
| PASS | Row : 3 added |
| PASS | Row : exactly 1 changed |
| PASS | Column analyses count = shared count |
| PASS | payment_amount reports non-zero disagreement in numeric stats |
Angela Shi · medium.com/@angela.shi