
A sample project that shows how I clean a typical exported contact list in one run.
The problem
The list had extra spaces, mixed upper and lower case, names written as "LAST, FIRST", phone numbers in four formats, dates in six formats and the same people entered twice.
What the script does
Trims spaces and fixes name case, including names like O'Brien
Lower-cases emails and flags invalid ones
Formats every phone number the same way
Converts all dates to YYYY-MM-DD
Removes duplicates by email
Writes a short report of rows that still need a human check, instead of silently dropping them
Result
6 messy rows became 4 clean rows, 2 duplicates removed and 2 problems listed for review. The same script runs on lists with thousands of rows, and I can adapt it to Excel files or Google Sheets.
0 likes · 0 views · Nov 27, 2026
Sample Python script that cleans an exported contact list and flags rows needing review.