Team Members (Group 13):
- Aleksandar Stankovski
- Javier Soto Letelier
- Rania Bichara
- Aitor Deschryver-Larralde
NbaSeasonStats is a Python package that provides functionality to retrieve and analyze NBA season statistics.
- 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
NBA Statistics
├── data_extraction.py
├── generate_report.py
├── nba_stats.py
├── plot_data.py
├── .gitignore
├── README.md
├── __init__.py
└── setup.py
data_extraction.py
- Contains the functions to extract data from the NBA websitegenerate_report.py
- Contains the functions to generate a report on the NBA season statisticsnba_stats.py
- Contains the main functions to run the retrieval and analysis of NBA season statisticsplot_data.py
- Contains the functions to plot the NBA season statistics
-
Clone the repository:
git clone https://github.com/StankovskiA/NbaSeasonStats.git
-
Change to the NbaSeasonStats directory:
cd NbaSeasonStats
-
Create a virtual environment:
python -m venv .env
-
Activate the virtual environment:
source .env/bin/activate
(Linux) or.env\Scripts\activate
(Windows) -
Install the package dependencies (Selenium, Matplotlib, Pandas):
pip install -e .
The package can be used from the command line. The following are the available arguments:
--start
- The start year of the NBA season--end
- The end year of the NBA season--out
- The name of the output data file--report
- Whether to generate a report--save
- Whether to save the output file--help
- Get help on how to use the package
-
To get help on how to use the package, run:
NbaSeasonStats --help
orNbaSeasonStats -h
-
Run the package with the desired arguments:
NbaSeasonStats --start 18 --end 23 --out nba_season_stats.csv --report True --save True