

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
Not enough gems
Cost: 6 gems
1: Data Cleaning
incomplete
2: Handling Missing Values
incomplete
3: Handling Duplicates
incomplete
4: Type Normalization
incomplete
5: Converting Types
incomplete
6: Cleaning Dates
incomplete
7: Working With Date Values
incomplete
8: Data Validation
incomplete
9: String Length
incomplete
10: Validation Summary
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
Raw data kinda sucks. It usually has problems like:
Missing values: NaN, None, empty strings
Duplicates: the same record shows up more than once
Wrong types: numbers stored as strings
Inconsistent formats: 2024-01-15 vs. 01/15/2024 vs. Jan 15, 2024
Invalid data: ages of 200, negative prices, future dates
Before you analyze anything, you need to make the data consistent enough to trust. That's data cleaning: finding problems, deciding what to do about them, and making those fixes repeatable.
"Garbage in, garbage out" is the basic rule of data work. If the input is dirty, so's the output.
The more you can standardize and automate your cleaning with tools like Pandas or Polars, the easier it is to produce usable results.
You'll spend 60–80% of your time cleaning data. Get it right, and make it repeatable, so you don't keep fixing the same messes by hand.
I have 3 rules:
Handle missing data explicitly in code
Always validate after cleaning
Keep the original data by only cleaning a copy