James McCool commited on
Commit
b5ed48b
·
1 Parent(s): 76ff10d

Fix player ID mapping in app.py by swapping keys and values in the dictionaries for DraftKings and FanDuel, ensuring accurate player identification in data processing.

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -70,9 +70,9 @@ def init_baselines():
70
  roo_data['Salary'] = roo_data['Salary'].astype(int)
71
 
72
  dk_roo = roo_data[roo_data['Site'] == 'Draftkings']
73
- dk_id_map = dict(zip(dk_roo['player_ID'], dk_roo['Player']))
74
  fd_roo = roo_data[roo_data['Site'] == 'Fanduel']
75
- fd_id_map = dict(zip(fd_roo['player_ID'], fd_roo['Player']))
76
 
77
  collection = db["Player_SD_Range_Of_Outcomes"]
78
  cursor = collection.find()
 
70
  roo_data['Salary'] = roo_data['Salary'].astype(int)
71
 
72
  dk_roo = roo_data[roo_data['Site'] == 'Draftkings']
73
+ dk_id_map = dict(zip(dk_roo['Player'], dk_roo['player_ID']))
74
  fd_roo = roo_data[roo_data['Site'] == 'Fanduel']
75
+ fd_id_map = dict(zip(fd_roo['Player'], fd_roo['player_ID']))
76
 
77
  collection = db["Player_SD_Range_Of_Outcomes"]
78
  cursor = collection.find()