Skip to content

vinostroud/nfl_analytics

Repository files navigation

Table of Contents

About the Project

This project is a simple NFL analytics dashboard built with Streamlit. It allows users to visualize some NFL data key through interactive charts. Data is pulled from https://github.com/nflverse/nfl_data_py.

Features

As of August 2024, the dashboard includes the following charts:

  • Team EPA (Expected Points Added) for first down
  • Team EPA for both first and second down
  • Comparison of EPA, points scored, and turnovers
  • A basic regression model (work in progress)

Installation

To get a local copy up and running, follow these steps:

Prerequisites

  • Python 3.x (3.12 is recommended)
  • Poetry (for package management)

Installation Steps

  1. Clone the repository:
    git clone https://github.com/vinostroud/nfl_analytics
  2. Navigate to the project directory:
    cd nfl-analytics
  3. Install the dependencies using Poetry:
    poetry install
  4. Run the Streamlit app:
    poetry run streamlit run src/app_fe.py

Usage

After installing the project, you can run the Streamlit app with the following command:

poetry run streamlit run src/app_fe.py

After running the app in Streamlit, follow instructions in your terminal window to view the app in your browser. Typically you will navigate to http://localhost:8501

Folder Structure

  • src/ contains the main app code
  • tests/ contains test scripts using pytest

Technologies Used

  • Python
  • Streamlit
  • Pandas
  • NFL Data Py (nfl_data_py)
  • Sklearn

Contributing

This project was created for fun and out of an interest in NFL data. Contributions, PRs, creation of issues, or ideas are therefore welcome.

License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published