Week 05 / Cleaning · questions · pandas · charts · provenance
Find a story in data.
The idea
Analysis starts with a question that can be answered from the data. Clean only what you can justify, keep track of exclusions, and label charts so another person can understand both the result and its source.
Inspect a dataset with pandas
import pandas as pd
games = pd.read_csv("games.csv")
print(games.shape)
print(games.isna().sum())
played = games.dropna(subset=["home_score", "away_score"])
print(played[["home_score", "away_score"]].describe())Build it
Work through these steps in your own project. Check them off as you go; your checklist stays in this browser.
What evidence supports your conclusion, and what does this dataset not tell you?
Notes save in this browser.