Understanding which position scores the most per team
In baseball, teams are allowed 9 batters in a “lineup,” with 1 representing the first person to bat and 9 representing the last. Over the course of a game, teams cycle through batters in order, starting over with the first batter after the last has batted.
Typically, teams place some of their best hitters toward the “top of the lineup” (i.e., lower number positions) to maximize the opportunity for them to come around and score. However, this does not always mean that the person who bats in position 1 will always be the first to score.
In this recipe, we are going to look at all Major League baseball teams from 2000–2023 and find the position that scored the most runs for a team over each season.
How to do it
Much like we did in the Finding the baseball players best at… recipe, we are going to use data taken from retrosheet.org. For this particular dataset, we are going to...