Fernhollow Supply Co.: a customer list cleanup
A Python script that cleaned a messy 250-row customer CSV for a supply company. Formats were fixed, 34 repeats were merged into the customers they belong to, every change was logged, and the 15 judgment calls were left for a person instead of guessed.
A closer look








What's in it
- 250 rows in, 211 customers out: 5 junk rows dropped and 34 repeats merged
- Thirteen cleaning rules, 1,187 cells fixed, each one logged with its before, after and rule
- Repeat matching on email, phone or name plus ZIP, with a name check so two businesses sharing one email are not merged
- Same name in another town kept as a second location
- 15 questions left for a person instead of guesses: missing digits, emails without an @, look-alike names
- An Excel workbook with Clean, Changes, Duplicates, Needs Review, Removed and Original tabs, plus the same outputs as CSV
- Standard library Python with 37 tests