Moneyball uses the most recent complete baseball statistics dataset (updated January 24, 2015) from Sean Lahman's website to find the players with the highest OBP and the lowest salary in a specific year and uses that data to build a 9 player roster. The Moneyball notebook includes two rosters; one roster that pulls the highest value players from the 1986 season and another roster that pulls from all available years.
The Moneyball rosters include:
- Baseman (1st, 2nd, 3rd)
- Fielders (Left, Center, Right)
- Short Stop
- Pitcher
- Catcher
- The Moneyball notebook can be viewed on GitHub or downloaded to the users computer.
- Before the user can view the Moneyball notebook on their computer, the user must first clone the moneyball repo onto their computer. The user must have Python 3 installed.
- To properly run the notebook, the contents of requirements.txt must be installed.
- After navigating to the folder containing
moneyball.ipynb
and thedata
folder, enterpip install -r requirements.txt
on the command-line to download the contents of requirements.txt.
- After navigating to the folder containing
- The user can then enter
ipython notebook moneyball.ipynb
on the command-line to open the Moneyball notebook.