Course map
Stage 1: Foundations
Stage 2: Data Integration
Stage 3: Building & Shipping
Stage 4: Customer Engagement
Stage 5: Specialization

Part 06 / Topic 4 of 7

Duplicates

Exact duplicates (S-1003's doubled row) fall to drop_duplicates() — or better, to the keyed upsert in Part 7, which makes the whole load duplicate-proof. Near duplicates are harder: the same shipment keyed differently, or the same customer spelled Bolt Retail and Bolt Retail. Strategies that work in practice: normalise before comparing (which is why lesson 2 comes first), then compare on the fields that define identity (customer + route + date), not on the whole row. Flag near-duplicates for a human rather than merging automatically — at a customer, a false merge is worse than a reported pair.

Done here? The practice set for Part 6 — 4 exercises with solutions — is on the part page.

Search the guide