Spaces:
Running
Running
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
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['
|
74 |
fd_roo = roo_data[roo_data['Site'] == 'Fanduel']
|
75 |
-
fd_id_map = dict(zip(fd_roo['
|
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()
|