James McCool commited on
Commit
939415c
·
1 Parent(s): 40ab0f4

Enhance player ROO DataFrame styling in app.py by expanding the background gradient subset to include 'Small Field Own%', 'Large Field Own%', and 'Cash Own%' for improved visual representation and clarity.

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -473,10 +473,10 @@ with tab2:
473
  elif view_var == "Advanced":
474
  try:
475
  player_roo_disp = player_roo_disp.set_index('Player', drop=True)
476
- st.dataframe(player_roo_disp.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').background_gradient(cmap='RdYlGn_r', subset=['Order', 'Salary', 'Own%']).format(player_roo_format, precision=2), height=750, use_container_width = True)
477
  except:
478
  player_roo_disp = player_roo_disp.set_index('Player', drop=True)
479
- st.dataframe(player_roo_disp.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').background_gradient(cmap='RdYlGn_r', subset=['Order', 'Salary', 'Own%']).format(player_roo_format, precision=2), height=750, use_container_width = True)
480
 
481
  with tab3:
482
  st.header("Optimals")
 
473
  elif view_var == "Advanced":
474
  try:
475
  player_roo_disp = player_roo_disp.set_index('Player', drop=True)
476
+ st.dataframe(player_roo_disp.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').background_gradient(cmap='RdYlGn_r', subset=['Order', 'Salary', 'Own%', 'Small Field Own%', 'Large Field Own%', 'Cash Own%']).format(player_roo_format, precision=2), height=750, use_container_width = True)
477
  except:
478
  player_roo_disp = player_roo_disp.set_index('Player', drop=True)
479
+ st.dataframe(player_roo_disp.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').background_gradient(cmap='RdYlGn_r', subset=['Order', 'Salary', 'Own%', 'Small Field Own%', 'Large Field Own%', 'Cash Own%']).format(player_roo_format, precision=2), height=750, use_container_width = True)
480
 
481
  with tab3:
482
  st.header("Optimals")