1,245 Rows In, 1,000 Rows Out: A Measured Deduplication Run
Lab notebook, run entry. Objective: measure what a deduplication pass actually does to a file whose contents are known in advance, rather than guessing...
Lab notebook, run entry. Objective: measure what a deduplication pass actually does to a file whose contents are known in advance, rather than guessing from a file whose history is unknown. Preparation: assemble a contact list where the correct answer is already established, contaminate it in controlled ways, shuffle it so that no pattern in row order can help the cleaning pass, and then run the pass and classify every row it touches. On a prepared file, the injected faults are counted before the run starts, so the output can be checked against a known input instead of merely admired. This entry records the preparation, the pass, and the classification, in the order they happened, with the counts left exactly as they were observed. The value of the exercise lies less in the headline reduction than in where each removed row was assigned, because assignment is where deduplication reports most often mislead the people who read them.
What Duplicate Share means
Duplicate Share means the percentage of an incoming file that deduplication removes or merges. The definition sounds like a single number, and it is usually reported as one, but its usefulness depends entirely on how that number is split. This article splits it into three named parts: exact duplicates, formatting variants, and blank rows. An exact duplicate repeats another row as written. A formatting variant carries the same contact information in a different written form, such as a change in letter case or surrounding whitespace, so it looks different to a strict comparison while meaning the same thing to a person. A blank row carries nothing at all.
Keeping those parts separate is not tidiness for its own sake. Each part points to a different cause and a different remedy. Exact duplicates usually signal that lists were merged, imports were repeated, or records were submitted more than once. Formatting variants signal inconsistent capture: different forms, different habits, or different systems writing the same fact in different shapes. Blank rows signal gaps in an export or a file assembled with empty padding. A report that merges all three into one impressive percentage tells a team that cleaning happened, but gives that team nothing to fix upstream. A report that separates them tells the team where the file went wrong. There is also an ordering truth inside the concept. A row can only be counted once, so the sequence in which checks run decides which category receives it. Exact matching first, then normalized matching, is the order used here, and any duplicate that could satisfy both tests will be claimed by whichever test reaches it first. Duplicate Share therefore describes not only a file, but also the procedure applied to it, and honest reporting names both.
The numbers
The run is recorded as measured run R1, executed 2026-11-23 (Source: measured run R1, SmartDataAI lab, 2026-11-23). Its method was controlled from the start: a synthetic contact list was assembled from 1,000 base contacts, then 120 exact duplicate rows, 85 case/whitespace variants of existing rows, and 40 fully blank rows were injected, and the file was shuffled (Source: measured run R1, SmartDataAI lab, 2026-11-23). A Python cleaning pass then classified every row (Source: measured run R1, SmartDataAI lab, 2026-11-23).
The headline counts are these. Rows in were 1,245, and rows out were 1,000 (Source: measured run R1, SmartDataAI lab, 2026-11-23). Within the reduction, exact duplicates removed were 118, case/whitespace variants merged were 87, and blank rows removed were 40 (Source: measured run R1, SmartDataAI lab, 2026-11-23). The total duplicate share was 16.47% of the incoming file (Source: measured run R1, SmartDataAI lab, 2026-11-23).
Those classification counts deserve an honest note, because they do not line up naively with the injected counts, and the reason is instructive. Two of the injected exact duplicates were themselves copies of already-duplicated rows, and they were caught in the variant pass rather than the exact pass. Stated simply, classification order decides which bucket a duplicate lands in: exact match first, then normalized match. A duplicate that survives the first test in a slightly altered form, or that duplicates a row already altered, will be recorded where it is caught, not where it was injected. This is not an error in the pass. It is a property of any ordered classification, which is why a deduplication report should be read as a record of decisions, not as a perfect reconstruction of how the file was built.
Practical guidance follows directly from the run. Run exact matching before normalized matching, so that the strictest and least ambiguous test claims its rows first, and so that the variant category contains only rows that genuinely needed normalization to be recognized. Count blank rows separately, always, because they inflate duplicate-share reports: a file padded with empty rows can appear heavily duplicated even when its real records are largely unique, and a team acting on that inflated figure may chase a duplication problem it does not have while ignoring the export problem it does have. Finally, preserve the split in every report you publish. Three named counts, with the method and the order stated beside them, let a reader judge whether the cleaning was thorough and whether categories are comparable with a previous run.
Questions, answered
Why did the exact duplicates removed not match the number injected? Because classification is ordered. Two injected exact duplicates were copies of already-duplicated rows and were caught in the variant pass instead, so they were recorded as variants. The bucket a duplicate lands in depends on which test reaches it first.
Why should blank rows be counted separately from duplicates? Because blank rows carry no contact information, yet they enlarge the incoming file and therefore inflate the duplicate share. Counting them separately keeps the report honest about how much real duplication existed among actual records.
What order should the matching passes run in? Exact matching first, then normalized matching. The strict test should claim its rows before the looser test runs, so that variants are only those rows that truly needed case or whitespace normalization to be recognized as duplicates.
Summary
Measured run R1 took a prepared file of 1,245 rows and returned 1,000 rows, removing 118 exact duplicates, merging 87 case/whitespace variants, and removing 40 blank rows. The total duplicate share was 16.47% of the incoming file. The run also showed that classification order shapes the categories, since exact matching ran before normalized matching and two injected duplicates were caught in the variant pass. Reporting Duplicate Share as three named counts, rather than one blended figure, keeps the result interpretable and actionable.
Sources
- SmartDataAI measured run R1, executed 2026-11-23.
- SmartDataAI lab method note for run R1: synthetic list construction, fault injection, shuffle, and Python cleaning pass classification, 2026-11-23.