Update README.md
Browse files
README.md
CHANGED
@@ -33,7 +33,41 @@ This dataset has many potential uses. Primarily, visualization of plays, as illu
|
|
33 |
|
34 |
## Dataset Structure
|
35 |
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
## Dataset Creation
|
39 |
|
|
|
33 |
|
34 |
## Dataset Structure
|
35 |
|
36 |
+
The data is in the format of a dictionary:
|
37 |
+
|
38 |
+
- 'gameid': str
|
39 |
+
- 'gamedate': str
|
40 |
+
- 'eventid': str
|
41 |
+
- 'visitor':
|
42 |
+
- 'name': str
|
43 |
+
- 'teamid': int,
|
44 |
+
- 'abbreviation': str
|
45 |
+
- 'players': list of the dictionaries in the form of the following
|
46 |
+
- 'lastname': str
|
47 |
+
- 'firstname': str
|
48 |
+
- 'playerid': str
|
49 |
+
- 'number': int
|
50 |
+
- 'position': str
|
51 |
+
- 'home': same format as visitor
|
52 |
+
- 'quarter': int
|
53 |
+
- 'game_clock': float
|
54 |
+
- 'shot_clock': float
|
55 |
+
- 'ball_coordinates':
|
56 |
+
- 'x': float
|
57 |
+
- 'y': float
|
58 |
+
- 'z': float
|
59 |
+
- 'player_coordinates': list of the dictionaries in the form of the following
|
60 |
+
- 'teamid': int
|
61 |
+
- 'playerid': int
|
62 |
+
- 'x': float
|
63 |
+
- 'y': float
|
64 |
+
- 'z': float
|
65 |
+
|
66 |
+
## Requirements
|
67 |
+
|
68 |
+
To load the data, you must run
|
69 |
+
|
70 |
+
`import py7zr`
|
71 |
|
72 |
## Dataset Creation
|
73 |
|