
Launch a Python 3 Jupyter notebook, create markdown headings, use shift enter and control enter shortcuts, and track the order of execution while printing variables.
Explore how Jupyter notebooks support rich documentation through markdown, LaTeX equations, video embeds, and code blocks to convey scientific context in programming notes.
Parse each pitch in an at bat from pitchf/x data with Python, identify the pitch type, and maintain a running total of pitches while printing a verbose, color-coded display.
Coerce nested pitch data into a pandas data frame, producing one row per pitch with batter, at-bat index, stand side, speed, and location for efficient bat-by-bat analysis.
Use data frame slices to inspect mlb pitch data, applying non-inclusive ranges and at bat or batter filters to pull targeted rows and pitches.
Chart pitches against the strike zone by plotting called strikes and balls for right- and left-handed batters, using a Python workflow with data frames, color dictionaries, and markers.
Chart Kershaw's balls and strikes by right- and left-handed batters using Python, plotting pitch locations relative to the strike zone with handedness annotations.
Filter the pitch data frame to Dickerson's first at bat and plot the six pitches against the strike zone, then iterate plots in a notebook with one line of code.
Add ball and strike count columns to the pitch data frame with Python, initialize at 0-0, and update counts per pitch for each at-bat using ball, foul, and strike events.
We pulled 257 pitches from Kershaw's no-hitter into a Jupiter notebook, wrangled from Excel to a data frame, and plotted pitch locations and tendencies.
Discover how pitchf/x data and spin rate analytics reshape baseball strategy, from pitcher adjustments to player development, using public data and video analysis to measure kinetic chain impact.
In the 2006 playoffs, Major League Baseball debuted a pitch tracking camera system called PitchF/x. Now installed in every MLB stadium, the system has been continually extended and re-branded. From cameras to TrackMan radar, from StatCast, to GameDay – MLB now tracks every pitch and every player's movement on each pitch. The data are made public on the MLB web site and SaberMetricians world-wide pour over every detail. The teams themselves, average five or more statisticians dedicated to analyzing the data to aid in selecting and improving players.
I'm Chaz Henry – a software engineer, 12 year little league coach and founder of the PowerChalk dot com website. In this class, we're going to open a fresh Jupyter Notebook, grab the MLB game data from Clayton Kershaw's 2014 no-hitter and wrangle that data in Python. It's an introduction in SaberMetrics - the empirical study of baseball statistics.
We'll use built-in Python libraries and graph the pitches with MatPlotLib and PyPlot. Along the way we'll talk about best practices for Jupyter Notebook, Python coding, XML parsing and maybe a little baseball.
So, if you're a coder, a SaberMetrician or a just a baseball fan who wants to peek behind the curtain at what's driving MoneyBall and the next wave of player development, sign up for the course and let's start scrubbing the pitch data from one of the greatest pitching performances in MLB history.