James McCool commited on
Commit
50337eb
·
1 Parent(s): 8e43993

Update background gradient for player exposure dataframe in app.py

Browse files

- Changed the color map for the background gradient in the player exposure dataframe from 'RgYlGn' to 'RdYlGn' to enhance visual clarity.
- Maintained existing formatting and display logic for player exposure percentages, ensuring consistency in data representation.

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -212,7 +212,7 @@ with tab2:
212
  else:
213
  st.session_state['player_frame'] = pd.merge(st.session_state['player_frame'], set_frame, on='Player', how='outer')
214
  count_var += 1
215
- st.dataframe(st.session_state['player_frame'].style.background_gradient(cmap='RgYlGn').format(player_exposure_format, precision=2), hide_index=True)
216
  with tab2:
217
  stack_counts = pd.Series(list(working_df['stack'])).value_counts()
218
  stack_frame = stack_counts.to_frame().reset_index().rename(columns={'index': 'Stack', 'count': 'Count'})
 
212
  else:
213
  st.session_state['player_frame'] = pd.merge(st.session_state['player_frame'], set_frame, on='Player', how='outer')
214
  count_var += 1
215
+ st.dataframe(st.session_state['player_frame'].style.background_gradient(cmap='RdYlGn').format(player_exposure_format, precision=2), hide_index=True)
216
  with tab2:
217
  stack_counts = pd.Series(list(working_df['stack'])).value_counts()
218
  stack_frame = stack_counts.to_frame().reset_index().rename(columns={'index': 'Stack', 'count': 'Count'})