James McCool
commited on
Commit
·
6864f0f
1
Parent(s):
80a823d
Refine dataframe gradient application in app.py
Browse files- Removed redundant background gradient application for the 'dupes' subset in the dataframe display, streamlining the styling process.
- Ensured consistent visual presentation across different entry selections while maintaining precision formatting.
app.py
CHANGED
@@ -295,7 +295,6 @@ with tab2:
|
|
295 |
st.dataframe(st.session_state['general_frame'].
|
296 |
style.background_gradient(axis=1).
|
297 |
background_gradient(cmap='RdYlGn').
|
298 |
-
background_gradient(cmap='RdYlGn_r', subset='dupes').
|
299 |
format(precision=2),
|
300 |
hide_index=True)
|
301 |
else:
|
@@ -303,7 +302,6 @@ with tab2:
|
|
303 |
st.dataframe(st.session_state['general_frame'].
|
304 |
style.background_gradient(axis=1).
|
305 |
background_gradient(cmap='RdYlGn').
|
306 |
-
background_gradient(cmap='RdYlGn_r', subset='dupes').
|
307 |
format(precision=2),
|
308 |
hide_index=True)
|
309 |
|
|
|
295 |
st.dataframe(st.session_state['general_frame'].
|
296 |
style.background_gradient(axis=1).
|
297 |
background_gradient(cmap='RdYlGn').
|
|
|
298 |
format(precision=2),
|
299 |
hide_index=True)
|
300 |
else:
|
|
|
302 |
st.dataframe(st.session_state['general_frame'].
|
303 |
style.background_gradient(axis=1).
|
304 |
background_gradient(cmap='RdYlGn').
|
|
|
305 |
format(precision=2),
|
306 |
hide_index=True)
|
307 |
|