Sports analytics, the hands-on way

Learn sports analytics by actually doing it.

Pull real MLB, NBA, soccer, NFL and NHL data, analyse it in Python, and build charts you made yourself - one focused tutorial at a time.

Featured

A clean leaderboard of the season's top goal scorers.
Hockey Intermediate

Build an NHL Goal-Scoring Leaders Chart

Use the NHL's stats-leaders endpoint to pull the top goal scorers, shape the nested JSON into a tidy table, and build a leaderboard chart with each player's team.

~8 min
A team's game-by-game form as a rolling goal differential line.
Hockey Intermediate

Track a Team's Form: Rolling Goal Differential

Pull a team's full NHL schedule with scores, compute a rolling goal differential, and chart the peaks and slumps of a season - reading momentum straight from the data.

~9 min
A ranking of how aggressive each team is on fourth down.
Football Advanced

Fourth-Down Decisions: Which Teams Go For It?

Filter play-by-play to fourth downs, classify each decision (go, punt, kick), and rank teams by how often they go for it - the clearest signal of analytics-era coaching.

~9 min