Spaces:
Running
Running
James McCool
commited on
Commit
·
16a2718
1
Parent(s):
38762a9
Update data export column handling in app.py: increase the number of columns processed for Showdown slate types in both Draftkings and Fanduel, ensuring accurate player ID mapping and enhancing data export functionality.
Browse files
app.py
CHANGED
@@ -428,7 +428,7 @@ with tab2:
|
|
428 |
data_export[:, col_idx] = np.array([id_dict.get(player, player) for player in data_export[:, col_idx]])
|
429 |
elif slate_type_var1 == 'Showdown':
|
430 |
data_export = init_DK_SD_lineups(slate_var1)
|
431 |
-
for col_idx in range(
|
432 |
data_export[:, col_idx] = np.array([id_dict_sd.get(player, player) for player in data_export[:, col_idx]])
|
433 |
|
434 |
elif site_var1 == 'Fanduel':
|
@@ -438,7 +438,7 @@ with tab2:
|
|
438 |
data_export[:, col_idx] = np.array([id_dict.get(player, player) for player in data_export[:, col_idx]])
|
439 |
elif slate_type_var1 == 'Showdown':
|
440 |
data_export = init_FD_SD_lineups(slate_var1)
|
441 |
-
for col_idx in range(
|
442 |
data_export[:, col_idx] = np.array([id_dict_sd.get(player, player) for player in data_export[:, col_idx]])
|
443 |
|
444 |
st.download_button(
|
@@ -503,14 +503,14 @@ with tab2:
|
|
503 |
for col_idx in range(8):
|
504 |
export_file.iloc[:, col_idx] = export_file.iloc[:, col_idx].map(id_dict)
|
505 |
elif slate_type_var1 == 'Showdown':
|
506 |
-
for col_idx in range(
|
507 |
export_file.iloc[:, col_idx] = export_file.iloc[:, col_idx].map(id_dict_sd)
|
508 |
elif site_var1 == 'Fanduel':
|
509 |
if slate_type_var1 == 'Regular':
|
510 |
for col_idx in range(9):
|
511 |
export_file.iloc[:, col_idx] = export_file.iloc[:, col_idx].map(id_dict)
|
512 |
elif slate_type_var1 == 'Showdown':
|
513 |
-
for col_idx in range(
|
514 |
export_file.iloc[:, col_idx] = export_file.iloc[:, col_idx].map(id_dict_sd)
|
515 |
|
516 |
with st.container():
|
|
|
428 |
data_export[:, col_idx] = np.array([id_dict.get(player, player) for player in data_export[:, col_idx]])
|
429 |
elif slate_type_var1 == 'Showdown':
|
430 |
data_export = init_DK_SD_lineups(slate_var1)
|
431 |
+
for col_idx in range(6):
|
432 |
data_export[:, col_idx] = np.array([id_dict_sd.get(player, player) for player in data_export[:, col_idx]])
|
433 |
|
434 |
elif site_var1 == 'Fanduel':
|
|
|
438 |
data_export[:, col_idx] = np.array([id_dict.get(player, player) for player in data_export[:, col_idx]])
|
439 |
elif slate_type_var1 == 'Showdown':
|
440 |
data_export = init_FD_SD_lineups(slate_var1)
|
441 |
+
for col_idx in range(6):
|
442 |
data_export[:, col_idx] = np.array([id_dict_sd.get(player, player) for player in data_export[:, col_idx]])
|
443 |
|
444 |
st.download_button(
|
|
|
503 |
for col_idx in range(8):
|
504 |
export_file.iloc[:, col_idx] = export_file.iloc[:, col_idx].map(id_dict)
|
505 |
elif slate_type_var1 == 'Showdown':
|
506 |
+
for col_idx in range(6):
|
507 |
export_file.iloc[:, col_idx] = export_file.iloc[:, col_idx].map(id_dict_sd)
|
508 |
elif site_var1 == 'Fanduel':
|
509 |
if slate_type_var1 == 'Regular':
|
510 |
for col_idx in range(9):
|
511 |
export_file.iloc[:, col_idx] = export_file.iloc[:, col_idx].map(id_dict)
|
512 |
elif slate_type_var1 == 'Showdown':
|
513 |
+
for col_idx in range(6):
|
514 |
export_file.iloc[:, col_idx] = export_file.iloc[:, col_idx].map(id_dict_sd)
|
515 |
|
516 |
with st.container():
|