https://github.com/ejw-data/proj-nba-eda
NBA exploratory data analysis project with Pandas and Tableau
https://github.com/ejw-data/proj-nba-eda
nba numpy pandas python tableau
Last synced: 2 months ago
JSON representation
NBA exploratory data analysis project with Pandas and Tableau
- Host: GitHub
- URL: https://github.com/ejw-data/proj-nba-eda
- Owner: ejw-data
- Created: 2022-10-03T23:15:30.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-06T01:49:56.000Z (over 3 years ago)
- Last Synced: 2025-07-18T09:46:10.254Z (11 months ago)
- Topics: nba, numpy, pandas, python, tableau
- Language: Jupyter Notebook
- Homepage:
- Size: 452 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# proj-nba-eda
Author: Erin James Wills, ejw.data@gmail.com

Photo by Markus Spiske on Unsplash
## Overview
NBA exploratory data analysis project with Pandas and Tableau
## Technologies
* Tableau
## Data Source
* NBA Revenue - https://runrepeat.com/nba-revenue-statistics
* NBA Salaries - https://hoopshype.com/salaries/
* NBA Salaries - https://data.world/datadavis/nba-salaries
* Alternate Pay - https://www.spotrac.com/nba/cash/
* All Stars - https://data.world/gmoney/nba-all-stars-2000-2016
## Setup and Installation
1. A copy of the tableau workbook is `xxxxxx_v2022_1.twbx`.
1. The dashboard can be viewed at https://ejw-data.github.io/xxxxxx/.
## Examples
TBD
## References:
Something to think about: https://www.si.com/nba/2018/09/21/nba-teams-revenue-spending-breakdown-small-large-market
Definitions:
**Hard cap**: A team salary figure (set at the apron) that, once triggered, cannot be crossed for any reason. A hard cap can be triggered in one of three ways:
* A team uses the non-taxpayer mid-level exception.
* A team uses the bi-annual exception.
* A team acquires a player through a sign-and-trade.
https://www.cbssports.com/nba/news/nba-salary-cap-explained-glossary-for-the-terms-you-need-to-know-ahead-of-basketball-free-agency/#:~:text=Hard%20cap%3A%20A%20team%20salary,uses%20the%20bi%2Dannual%20exception.
## ETL
Tables
* player
- player_id
- player_name
- birthdate
- first_game_date
- retirement_date
* player-injury
- player_id
- injury
- start_date
- end_date
* team
- team_id
- team_name
- team_abbrev
- team_city
- team_mascot
- start_date
- end_date
* games (schedule??)
- game_id
- home_team
- away_team
- location
- arena
- start_date
- start_time_et
- start_time_local
* player-team
- player_id
- team_id
- position
- start_date
- end_date
* play-by-play
- game_id
- event_id
- event_description
- game_time
- player_id
* players-substitution
- player_id
- game_id
- team_id
- quarter
- time
- type (sub-in or sub-out)
* players-scored
- player_id
- type_score (foul_shot, layup, dunk, 3ptr, etc)
- location
- pts_scored
- quarter
- time
- shotclock
* players-fouls
- player_id
- type
- player_fouled
- shooting_foul
- pts_scored
* players-defense
* player_id
* type (steal, block, turnover)
* offense_player
* quarter
* time
* players-assists
- player_id
- type (assist)
- player_scored
* players-rebounds
- player_id
- type (offensive/defensive)
- quarter
- time
- next play
* player-salary
- player_id
- season
- income_source
- conditions
* team-caps
*** What to record for p-b-p
- event log
- event_id
- raw_description
- table
- _id
- quarter
- time