Before I analysed a single number, I spent a whole phase proving the data was right.
The raw files had 9 problems hiding in them, including:
• 30,220 duplicate transactions
• Dates in three different formats in the same column
• 617 repayments for loans that don't exist
• 1,235 payments dated before the loan was issued
• One category spelled 77 different ways
Three rules I followed:
Never silently delete. Bad rows go to a quarantine table, with the reason.
Flag, don't guess.
Fail loudly. My date parser throws an error on any format it doesn't recognise.
And three ways I proved it:
✓ 100% precision against the dataset's answer key
✓ Every raw row reconciled: raw = clean + duplicates + quarantined
✓ 0 violations in 306,580 date-order checks (that's how I knew 03/04 meant 3 April, not 4 March)
Cleaning isn't glamorous. But every insight after this depends on it.
How do you check that your cleaning is right?
#DataQuality #SQL #PostgreSQL #DataAnalytics
0 likes · 0 views · Nov 28, 2026