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.
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']
|
| 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:
|