fix for series error
Browse files
nba_tracking_data_15_16.py
CHANGED
@@ -54,9 +54,9 @@ for game in items[0:2]:
|
|
54 |
_URLS[name] = _URL + "/" + name + ".7z"
|
55 |
|
56 |
def home_away_event_conversion(number):
|
57 |
-
if number == 4:
|
58 |
return "home"
|
59 |
-
elif number == 5:
|
60 |
return "away"
|
61 |
else:
|
62 |
return None
|
|
|
54 |
_URLS[name] = _URL + "/" + name + ".7z"
|
55 |
|
56 |
def home_away_event_conversion(number):
|
57 |
+
if number.item() == 4:
|
58 |
return "home"
|
59 |
+
elif number.item() == 5:
|
60 |
return "away"
|
61 |
else:
|
62 |
return None
|