Spaces:
Running
Running
James McCool
commited on
Commit
·
d2f16b0
1
Parent(s):
7531a91
Enhance data presentation in app.py by updating the background gradient styling for player statistics. The new gradient uses the 'RdYlGn' colormap for improved visual clarity, enhancing the user experience when viewing simulation results.
Browse files
app.py
CHANGED
@@ -458,6 +458,6 @@ if st.button("Run"):
|
|
458 |
stat_data = overall_sim_df[overall_sim_df['Stat'] == stat].copy()
|
459 |
stat_data = stat_data.set_index('Player')[['Position', '10%', '25%', '50%', '75%', '90%']]
|
460 |
st.dataframe(
|
461 |
-
stat_data.style.format(precision=2).background_gradient(axis=0),
|
462 |
use_container_width=True
|
463 |
)
|
|
|
458 |
stat_data = overall_sim_df[overall_sim_df['Stat'] == stat].copy()
|
459 |
stat_data = stat_data.set_index('Player')[['Position', '10%', '25%', '50%', '75%', '90%']]
|
460 |
st.dataframe(
|
461 |
+
stat_data.style.format(precision=2).background_gradient(axis=0).background_gradient(cmap='RdYlGn'),
|
462 |
use_container_width=True
|
463 |
)
|