Data Handling
Load, validate, clean and transform structured data (JSON, CSV, tables) so downstream code receives trustworthy inputs.
3 objectives 5 steps about 100 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Parse JSON and CSV into Python structures and serialize results back without losing data or encoding.
- Validate records against a schema and report or quarantine invalid rows with a reason.
- Clean and reshape tabular data with pandas: filter, deduplicate, join and aggregate.
Lesson plan
5 steps, about 100 min · 4 of 4 lessons available so far
- JSON, CSV, Parquet and Text Encodings Concept · 15 min
- Round-Tripping Records Safely, CSV Versus Parquet Worked example · 20 min
- Schema Validation with Pydantic Models Lab · 25 min
- Tabular Cleaning with pandas Lab · 25 min
- Check: Clean a Messy Dataset Knowledge check · 6 questions
Practise it
Take a messy CSV of support tickets (mixed encodings, duplicates, missing fields), validate each row with a Pydantic model, write valid rows to JSON Lines and to Parquet and invalid rows to a rejects file with reasons, and print summary counts; read back only two columns from the Parquet file and show that dates and integers keep their dtypes where a CSV round trip loses them.
Build it from scratch
Practice builds that exercise this skill by re-creating a real technology.
- Build your own Search EngineIntermediate · 8–16 h
- Build your own JSON ParserIntro · 3–6 h
- Build your own GitIntermediate · 10–20 h
References
Hard prerequisites
Unlocks
On these roadmaps
Progress and evidence for this skill are shared across all of them.