Spaces:
Running
Running
James McCool
commited on
Commit
·
d1d77b6
1
Parent(s):
a085b3b
Enhance dataframe display in app.py by applying background gradients and formatting for improved visual clarity and user experience.
Browse files
app.py
CHANGED
@@ -134,7 +134,7 @@ with tab2:
|
|
134 |
elif site_var == "Fanduel":
|
135 |
display_data = sd_roo_data[sd_roo_data['site'] == 'Fanduel']
|
136 |
display_data = display_data[display_data['slate'] == 'FD SD1']
|
137 |
-
st.dataframe(display_data)
|
138 |
|
139 |
with tab3:
|
140 |
with st.expander("Info and Filters"):
|
|
|
134 |
elif site_var == "Fanduel":
|
135 |
display_data = sd_roo_data[sd_roo_data['site'] == 'Fanduel']
|
136 |
display_data = display_data[display_data['slate'] == 'FD SD1']
|
137 |
+
st.dataframe(display_data.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(player_roo_format, precision=2), height=750, use_container_width = True)
|
138 |
|
139 |
with tab3:
|
140 |
with st.expander("Info and Filters"):
|