lee1jaden / baseball-analytics

This repository is for experimenting with baseball data analytics.
0 stars 0 forks source link

Baseball Analytics

Overview

How can you not be romantic about baseball? - Billy Beane in Moneyball

The backdrop at Smith's Ballpark is incredible!

Installation

  1. Install Python and a virtual environment such as venv on your machine. Make sure to activate it before installing dependencies from the 'requirements.txt' file.
  2. To install dependencies, run the following commands:
    pip install pipreqs
    pip install -r requirements.txt
  3. If trying to access data from the FTP server, add a file called "my_secrets.py" and create variables with the HOST, USERNAME, PASSWORD, and SERVER_DIRECTORY needed to connect.
  4. Run python executables from the terminal or use the debug window.
  5. To update dependencies, run the following command:

    pipreqs . --ignore ./.venv --force

  6. If a Python file does not run, provide executable permissions with:

    chmod +x [filepath]

References

  1. Here is a link to an overview of the data typically contained in TrackMan CSV files: https://support.trackmanbaseball.com/hc/en-us/articles/5089413493787-V3-FAQs-Radar-Measurement-Glossary-Of-Terms

Files

Pitcher Development Reports

Sandbox