James McCool commited on
Commit
fbd699f
·
1 Parent(s): c1762a4

export file now uses player IDs

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -439,10 +439,10 @@ with tab2:
439
  export_file = st.session_state.data_export_display.copy()
440
  if site_var1 == 'Draftkings':
441
  for col_idx in range(8):
442
- export_file[col_idx] = export_file[col_idx].map(id_dict)
443
  elif site_var1 == 'Fanduel':
444
  for col_idx in range(9):
445
- export_file[col_idx] = export_file[col_idx].map(id_dict)
446
 
447
  with st.container():
448
  if st.button("Reset Optimals", key='reset3'):
 
439
  export_file = st.session_state.data_export_display.copy()
440
  if site_var1 == 'Draftkings':
441
  for col_idx in range(8):
442
+ export_file.iloc[:, col_idx] = export_file.iloc[:, col_idx].map(id_dict)
443
  elif site_var1 == 'Fanduel':
444
  for col_idx in range(9):
445
+ export_file.iloc[:, col_idx] = export_file.iloc[:, col_idx].map(id_dict)
446
 
447
  with st.container():
448
  if st.button("Reset Optimals", key='reset3'):