update float type
Browse files- nba_tracking_data_15_16.py +13 -13
nba_tracking_data_15_16.py
CHANGED
@@ -88,17 +88,17 @@ class NbaTracking(datasets.GeneratorBasedBuilder):
|
|
88 |
"gamedate": datasets.Value("string"),
|
89 |
"event_info": {"id": datasets.Value("string"),
|
90 |
"type": datasets.Value("int64"),
|
91 |
-
"possession_team_id": datasets.Value("
|
92 |
"desc_home": datasets.Value("string"),
|
93 |
"desc_away": datasets.Value("string")
|
94 |
},
|
95 |
"primary_info": {"team": datasets.Value("string"),
|
96 |
-
"player_id": datasets.Value("
|
97 |
-
"team_id": datasets.Value("
|
98 |
},
|
99 |
"secondary_info": {"team": datasets.Value("string"),
|
100 |
-
"player_id": datasets.Value("
|
101 |
-
"team_id": datasets.Value("
|
102 |
},
|
103 |
"visitor": {
|
104 |
"name": datasets.Value("string"),
|
@@ -131,20 +131,20 @@ class NbaTracking(datasets.GeneratorBasedBuilder):
|
|
131 |
"moments": [
|
132 |
{
|
133 |
"quarter": datasets.Value("int64"),
|
134 |
-
"game_clock": datasets.Value("
|
135 |
-
"shot_clock": datasets.Value("
|
136 |
"ball_coordinates": {
|
137 |
-
"x": datasets.Value("
|
138 |
-
"y": datasets.Value("
|
139 |
-
"z": datasets.Value("
|
140 |
},
|
141 |
"player_coordinates": [
|
142 |
{
|
143 |
"teamid": datasets.Value("int32"),
|
144 |
"playerid": datasets.Value("int32"),
|
145 |
-
"x": datasets.Value("
|
146 |
-
"y": datasets.Value("
|
147 |
-
"z": datasets.Value("
|
148 |
}
|
149 |
]
|
150 |
}
|
|
|
88 |
"gamedate": datasets.Value("string"),
|
89 |
"event_info": {"id": datasets.Value("string"),
|
90 |
"type": datasets.Value("int64"),
|
91 |
+
"possession_team_id": datasets.Value("float64"),
|
92 |
"desc_home": datasets.Value("string"),
|
93 |
"desc_away": datasets.Value("string")
|
94 |
},
|
95 |
"primary_info": {"team": datasets.Value("string"),
|
96 |
+
"player_id": datasets.Value("float64"),
|
97 |
+
"team_id": datasets.Value("float64")
|
98 |
},
|
99 |
"secondary_info": {"team": datasets.Value("string"),
|
100 |
+
"player_id": datasets.Value("float64"),
|
101 |
+
"team_id": datasets.Value("float64")
|
102 |
},
|
103 |
"visitor": {
|
104 |
"name": datasets.Value("string"),
|
|
|
131 |
"moments": [
|
132 |
{
|
133 |
"quarter": datasets.Value("int64"),
|
134 |
+
"game_clock": datasets.Value("float64"),
|
135 |
+
"shot_clock": datasets.Value("float64"),
|
136 |
"ball_coordinates": {
|
137 |
+
"x": datasets.Value("float64"),
|
138 |
+
"y": datasets.Value("float64"),
|
139 |
+
"z": datasets.Value("float64")
|
140 |
},
|
141 |
"player_coordinates": [
|
142 |
{
|
143 |
"teamid": datasets.Value("int32"),
|
144 |
"playerid": datasets.Value("int32"),
|
145 |
+
"x": datasets.Value("float64"),
|
146 |
+
"y": datasets.Value("float64"),
|
147 |
+
"z": datasets.Value("float64")
|
148 |
}
|
149 |
]
|
150 |
}
|