Skip to content

NbaSeasonStats is a Python package that provides functionality to retrieve and analyze NBA season statistics.

Notifications You must be signed in to change notification settings

StankovskiA/NbaSeasonStats

Repository files navigation

NbaSeasonStats

License

Team Members (Group 13):

  • Aleksandar Stankovski
  • Javier Soto Letelier
  • Rania Bichara
  • Aitor Deschryver-Larralde

Description

NbaSeasonStats is a Python package that provides functionality to retrieve and analyze NBA season statistics.

Features

  • Retrieve NBA season statistics for teams over various seasons
  • Generate plots and reports on NBA season statistics
  • Export NBA teams season statistics to a PDF file

Project Structure

NBA Statistics
├── data_extraction.py
├── generate_report.py
├── nba_stats.py
├── plot_data.py
├── .gitignore
├── README.md
├── __init__.py
└── setup.py
  1. data_extraction.py - Contains the functions to extract data from the NBA website
  2. generate_report.py - Contains the functions to generate a report on the NBA season statistics
  3. nba_stats.py - Contains the main functions to run the retrieval and analysis of NBA season statistics
  4. plot_data.py - Contains the functions to plot the NBA season statistics

Installation

  1. Clone the repository: git clone https://github.com/StankovskiA/NbaSeasonStats.git

  2. Change to the NbaSeasonStats directory: cd NbaSeasonStats

  3. Create a virtual environment: python -m venv .env

  4. Activate the virtual environment: source .env/bin/activate (Linux) or .env\Scripts\activate (Windows)

  5. Install the package dependencies (Selenium, Matplotlib, Pandas): pip install -e .

Usage

Arguments

The package can be used from the command line. The following are the available arguments:

  1. --start - The start year of the NBA season
  2. --end - The end year of the NBA season
  3. --out - The name of the output data file
  4. --report - Whether to generate a report
  5. --save - Whether to save the output file
  6. --help - Get help on how to use the package

Examples

  1. To get help on how to use the package, run: NbaSeasonStats --help or NbaSeasonStats -h

  2. Run the package with the desired arguments: NbaSeasonStats --start 18 --end 23 --out nba_season_stats.csv --report True --save True

About

NbaSeasonStats is a Python package that provides functionality to retrieve and analyze NBA season statistics.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages