Join Team Batting and Pitching in Python to Build a Run-Differential Table
Join 2024 team batting and pitching on team_id in plain Python, compute run differential and Pythagorean wins for all 30 teams, and find the luckiest club.
Baseball analysis from public data, every figure sourced and dated
Est. 2026
Independent analysis of Major League Baseball
Final 2026 regular season: 2,429 games, 8.96 runs a game
Category
Roll up your sleeves. Step-by-step, runnable guides to pulling, charting, and analyzing real baseball data yourself, in Python or a spreadsheet.
Join 2024 team batting and pitching on team_id in plain Python, compute run differential and Pythagorean wins for all 30 teams, and find the luckiest club.
Go from reading wOBA to building it. A short, copy-paste Python walkthrough that computes weighted on-base average from raw events using published linear weights.
Pull MLB data in Python with pybaseball: install it, chart a leaderboard, then see the same code re-run on 2026 and checked against the MLB Stats API.
Statcast, Retrosheet, the MLB Stats API, Lahman and more: every free public baseball data source, ranked by what it's actually good for.
Wins lie; run differential doesn't. Build a Pythagorean power ranking of all 30 teams in a spreadsheet, step by step, with real season data.
Turn raw Statcast batted-ball coordinates into a real spray chart. A hands-on Python + matplotlib tutorial you can run on any hitter.
Query statsapi.mlb.com/api/v1 from Python with nothing but requests: no key, no library. Season stats, standings (leagueId 103,104) and the daily schedule.
A season-long stat hides hot and cold streaks. Build a rolling expected-wOBA chart in Python to watch a hitter actually heat up and cool off.