James McCool commited on
Commit
93f2f42
·
1 Parent(s): 3f22d0e

Refactor lineup display in app.py by removing '2x%' column from background gradient styling, enhancing clarity in player data presentation and maintaining focus on key statistics.

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -937,7 +937,7 @@ with tab4:
937
 
938
  # Show the lineup table with single-row selection for removal
939
  event_remove = st.dataframe(
940
- lineup_display_df.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn', subset=['Median', '2x%']).background_gradient(cmap='RdYlGn_r', subset=['Order', 'Salary', 'Own%']).format(precision=2),
941
  on_select="rerun",
942
  selection_mode=["single-row"],
943
  key="lineup_remove",
 
937
 
938
  # Show the lineup table with single-row selection for removal
939
  event_remove = st.dataframe(
940
+ lineup_display_df.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn', subset=['Median']).background_gradient(cmap='RdYlGn_r', subset=['Order', 'Salary', 'Own%']).format(precision=2),
941
  on_select="rerun",
942
  selection_mode=["single-row"],
943
  key="lineup_remove",