Case study — 04
Data Cleaning & Analysis with SQLite
Three messy datasets, one clean schema.
Data Analyst — client engagementgithub.com
A production-ready data pipeline for a client: three messy datasets cleaned, synchronised and modelled in SQLite to answer real business questions.
python clean.py users.csv transactions.csv products.csvdeduplicating · normalising types · syncing keyssqlite3 analysis.db < schema.sqlsqlite3 analysis.db < insights.sql✓ business insights ready
- Problem
- User, transaction and product data arrived as separate, inconsistent datasets — impossible to query together or trust for decisions.
- What I built
- Python and Pandas clean and synchronise the three datasets; an SQLite schema models them, and advanced SQL queries turn the processed data into actionable business insights.
- Key decision
- Design the schema before writing the queries. A clean relational model made the analysis simple SQL instead of a pile of one-off scripts.
Built with
- Python
- Pandas
- SQLite
- SQL