James McCool commited on
Commit
379842b
·
1 Parent(s): 14693dd

added export for display optimals

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -446,6 +446,12 @@ with tab2:
446
  st.session_state.working_seed = fd_lineups.copy()
447
  if 'data_export_display' in st.session_state:
448
  st.dataframe(st.session_state.data_export_display.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), height=500, use_container_width = True)
 
 
 
 
 
 
449
 
450
  with st.container():
451
  if 'working_seed' in st.session_state:
 
446
  st.session_state.working_seed = fd_lineups.copy()
447
  if 'data_export_display' in st.session_state:
448
  st.dataframe(st.session_state.data_export_display.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), height=500, use_container_width = True)
449
+ st.download_button(
450
+ label="Export display optimals",
451
+ data=convert_df(st.session_state.data_export_display),
452
+ file_name='NBA_display_optimals.csv',
453
+ mime='text/csv',
454
+ )
455
 
456
  with st.container():
457
  if 'working_seed' in st.session_state: