James McCool commited on
Commit
741d267
·
1 Parent(s): f7c0bfd

Remove 'Avg_Salary' from the background gradient in scoring percentages display in app.py, streamlining the visual presentation for the Simple view while maintaining clarity for the Advanced view.

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -358,7 +358,7 @@ with tab1:
358
  if view_var == "Simple":
359
  scoring_percentages = scoring_percentages[['Names', 'Runs', '8+ Runs', 'Win%', 'LevX', 'Own%']]
360
  scoring_percentages = scoring_percentages.set_index('Names', drop=True)
361
- st.dataframe(scoring_percentages.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').background_gradient(cmap='RdYlGn_r', subset=['Avg_Salary', 'Own%']).format(game_format, precision=2), height=750, use_container_width = True)
362
  elif view_var == "Advanced":
363
  scoring_percentages = scoring_percentages.set_index('Names', drop=True)
364
  st.dataframe(scoring_percentages.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').background_gradient(cmap='RdYlGn_r', subset=['Avg_Salary', 'Own%']).format(game_format, precision=2), height=750, use_container_width = True)
 
358
  if view_var == "Simple":
359
  scoring_percentages = scoring_percentages[['Names', 'Runs', '8+ Runs', 'Win%', 'LevX', 'Own%']]
360
  scoring_percentages = scoring_percentages.set_index('Names', drop=True)
361
+ st.dataframe(scoring_percentages.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').background_gradient(cmap='RdYlGn_r', subset=['Own%']).format(game_format, precision=2), height=750, use_container_width = True)
362
  elif view_var == "Advanced":
363
  scoring_percentages = scoring_percentages.set_index('Names', drop=True)
364
  st.dataframe(scoring_percentages.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').background_gradient(cmap='RdYlGn_r', subset=['Avg_Salary', 'Own%']).format(game_format, precision=2), height=750, use_container_width = True)