Spaces:
Running
Running
James McCool
commited on
Commit
·
b16a86d
1
Parent(s):
f5130d3
Standardize column names in app.py from 'Site' and 'Slate' to 'site' and 'slate' for consistency in player data filtering, improving code readability and maintainability.
Browse files
app.py
CHANGED
@@ -413,16 +413,16 @@ with tab2:
|
|
413 |
elif slate_type_var2 == 'Showdown':
|
414 |
player_roo_raw = sd_roo_data.copy()
|
415 |
if site_var == 'Draftkings':
|
416 |
-
player_roo_raw['
|
417 |
elif site_var == 'Fanduel':
|
418 |
-
player_roo_raw['
|
419 |
|
420 |
if slate_var2 == 'Main':
|
421 |
-
player_roo_raw = player_roo_raw[player_roo_raw['
|
422 |
elif slate_var2 == 'Secondary':
|
423 |
-
player_roo_raw = player_roo_raw[player_roo_raw['
|
424 |
elif slate_var2 == 'Auxiliary':
|
425 |
-
player_roo_raw = player_roo_raw[player_roo_raw['
|
426 |
|
427 |
if team_select2:
|
428 |
player_roo_raw = player_roo_raw[player_roo_raw['Team'].isin(team_select2)]
|
|
|
413 |
elif slate_type_var2 == 'Showdown':
|
414 |
player_roo_raw = sd_roo_data.copy()
|
415 |
if site_var == 'Draftkings':
|
416 |
+
player_roo_raw['site'] = 'Draftkings'
|
417 |
elif site_var == 'Fanduel':
|
418 |
+
player_roo_raw['site'] = 'Fanduel'
|
419 |
|
420 |
if slate_var2 == 'Main':
|
421 |
+
player_roo_raw = player_roo_raw[player_roo_raw['slate'] == 'DK SD1']
|
422 |
elif slate_var2 == 'Secondary':
|
423 |
+
player_roo_raw = player_roo_raw[player_roo_raw['slate'] == 'DK SD2']
|
424 |
elif slate_var2 == 'Auxiliary':
|
425 |
+
player_roo_raw = player_roo_raw[player_roo_raw['slate'] == 'DK SD3']
|
426 |
|
427 |
if team_select2:
|
428 |
player_roo_raw = player_roo_raw[player_roo_raw['Team'].isin(team_select2)]
|