Explore a Dataset Before You Model
Who it is for
What you will achieve
Prerequisites
Curriculum
- Step 1: First Look at a Dataset: 6 Checks Before You Plot or Model
Six quick pandas checks that tell you what's inside a dataset: size, types, gaps, spread, label balance and duplicates. Shown on 142,193 days of Australian weather.
- Step 2: Plotting Distributions with seaborn: Histograms, KDE, Counts and log1p
Look at one column at a time: read the peak and the tail of a histogram, compare groups with hue, count categories, and tame a long tail with log1p. Shown on restaurant bills and iris flowers.
- Step 3: Scatter Plots and Pair Plots: See How Two Columns Relate
Draw one dot per row with seaborn scatterplot, colour the dots by group with hue, turn a clean split into a one-line rule, and read every pair at once with pairplot. Shown on iris and tips.
- Step 4: Finding Outliers: Box Plots, Violin Plots and the IQR Rule
Read a box plot from its five numbers, flag outliers with the 1.5 x IQR rule in pandas, compare groups with box and violin plots, and cap extreme values with clip. Shown on 244 restaurant bills.
- Step 5: Correlation and Heatmaps: Covariance, df.corr() and What They Miss
Put one number on "these two columns move together": why covariance depends on units, how correlation fixes it, scanning every pair with df.corr() and a seaborn heatmap, and the two traps correlation can't see.
- Step 6: Train-Test Split and Data Leakage: Split First, Learn After
Why the train-test split comes before everything else: an 80/20 split with stratify and random_state, a scaler that leaks test rows, and a column that secretly holds the answer. Shown on Rain in Australia.