farazjawed commited on
Commit
d286a9f
1 Parent(s): 4ad9d3a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +41 -0
README.md CHANGED
@@ -1,3 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: mit
3
  ---
 
1
+ # NBA Play-by-Play Data Extraction and Analysis
2
+
3
+ ## Overview
4
+ This project aims to retrieve play-by-play data for NBA matches in the 2023 season using the Sportradar API. The play-by-play data is fetched from the API, saved into JSON files, and then used to extract relevant features for analysis and other applications. The extracted data is saved in Parquet files for easy access and usage by others.
5
+
6
+ ## Features
7
+ The project provides the following features:
8
+ - Fetching play-by-play data for NBA matches in the 2023 season from the Sportradar API.
9
+ - Saving the fetched data into JSON files for archival and offline use.
10
+ - Extracting relevant features from the JSON files, such as:
11
+ - Match date and time
12
+ - Home team and away team information
13
+ - Play descriptions
14
+ - Clock time
15
+ - Event types (e.g., two-pointer, three-pointer, block, foul)
16
+ - Home team points and away team points
17
+ - Quarter number
18
+ - Saving the extracted data into Parquet files for easy access and analysis.
19
+
20
+ ## Usage
21
+ 1. **Fetching Play-by-Play Data**: To fetch play-by-play data, use the provided `get_game_pbp()` function, which retrieves data from the Sportradar API and saves it into JSON files.
22
+
23
+ 2. **Extracting Features**: Use the `get_game_pbp()` function to extract relevant features from the JSON files and create a DataFrame containing the extracted data.
24
+
25
+ 3. **Saving Data**: The extracted data can be saved into Parquet files using pandas' `to_parquet()` function for future analysis and usage.
26
+
27
+ ## Potential Applications
28
+ - Generating live commentary for NBA matches.
29
+ - Performing in-depth analysis of player performance, team strategies, and game dynamics.
30
+ - Developing predictive models for match outcomes or player performance.
31
+
32
+ ## Contributors
33
+ - [Your Name](https://github.com/yourusername) - Project Lead & Developer
34
+
35
+ ## License
36
+ This project is licensed under the [MIT License](LICENSE).
37
+
38
+
39
+
40
+
41
+
42
  ---
43
  license: mit
44
  ---