dcayton commited on
Commit
69eb063
1 Parent(s): 77ef6cd

fix for series error

Browse files
Files changed (1) hide show
  1. nba_tracking_data_15_16.py +2 -2
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