James McCool commited on
Commit
20b1faf
·
1 Parent(s): dc0d88b

Fix DataFrame formatting for 'Exposure Overall' in app.py

Browse files

- Updated the formatting logic for the 'Exposure Overall' column in the DataFrame display to ensure correct percentage representation, enhancing data clarity and user understanding.

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -597,7 +597,7 @@ with tab2:
597
  st.dataframe(st.session_state['stack_size_frame'].
598
  sort_values(by='Exposure Overall', ascending=False).
599
  style.background_gradient(cmap='RdYlGn').
600
- format(formatter='{:.2%}', subset=st.session_state['stack_size_frame'].iloc[:, 1:].select_dtypes(include=['number']).columns),
601
  hide_index=True)
602
 
603
  with tab4:
 
597
  st.dataframe(st.session_state['stack_size_frame'].
598
  sort_values(by='Exposure Overall', ascending=False).
599
  style.background_gradient(cmap='RdYlGn').
600
+ format(formatter='{:.2%}', subset=st.session_state['stack_size_frame']['Exposure Overall']),
601
  hide_index=True)
602
 
603
  with tab4: