Spaces:
Running
Running
James McCool
commited on
Commit
·
eb4f26f
1
Parent(s):
d617731
changed dk_raw to roo_raw slice
Browse files
app.py
CHANGED
@@ -359,7 +359,8 @@ with tab2:
|
|
359 |
|
360 |
if site_var1 == 'Draftkings':
|
361 |
raw_baselines = dk_raw
|
362 |
-
|
|
|
363 |
# Get the minimum and maximum ownership values from dk_lineups
|
364 |
min_own = np.min(dk_lineups[:,14])
|
365 |
max_own = np.max(dk_lineups[:,14])
|
@@ -373,7 +374,8 @@ with tab2:
|
|
373 |
|
374 |
elif site_var1 == 'Fanduel':
|
375 |
raw_baselines = fd_raw
|
376 |
-
|
|
|
377 |
min_own = np.min(fd_lineups[:,15])
|
378 |
max_own = np.max(fd_lineups[:,15])
|
379 |
column_names = fd_columns
|
|
|
359 |
|
360 |
if site_var1 == 'Draftkings':
|
361 |
raw_baselines = dk_raw
|
362 |
+
ROO_slice = roo_raw[roo_raw['site'] == 'Draftkings']
|
363 |
+
id_dict = dict(zip(ROO_slice.Player, ROO_slice.player_ID))
|
364 |
# Get the minimum and maximum ownership values from dk_lineups
|
365 |
min_own = np.min(dk_lineups[:,14])
|
366 |
max_own = np.max(dk_lineups[:,14])
|
|
|
374 |
|
375 |
elif site_var1 == 'Fanduel':
|
376 |
raw_baselines = fd_raw
|
377 |
+
ROO_slice = roo_raw[roo_raw['site'] == 'Fanduel']
|
378 |
+
id_dict = dict(zip(ROO_slice.Player, ROO_slice.player_ID))
|
379 |
min_own = np.min(fd_lineups[:,15])
|
380 |
max_own = np.max(fd_lineups[:,15])
|
381 |
column_names = fd_columns
|