Spaces:
Running
Running
James McCool
commited on
Commit
·
e39b810
1
Parent(s):
e3cbf81
Fix background gradient direction in player data display in app.py. Changed the gradient axis from 0 to 1 to enhance the visual representation of player statistics, improving clarity and user experience.
Browse files
app.py
CHANGED
@@ -360,6 +360,6 @@ if st.button("Run"):
|
|
360 |
player_data = sim_df[sim_df['Player'] == player]
|
361 |
st.dataframe(
|
362 |
player_data[['Stat', '10%', '25%', '50%', '75%', '90%']]
|
363 |
-
.style.background_gradient(axis=
|
364 |
use_container_width=True
|
365 |
)
|
|
|
360 |
player_data = sim_df[sim_df['Player'] == player]
|
361 |
st.dataframe(
|
362 |
player_data[['Stat', '10%', '25%', '50%', '75%', '90%']]
|
363 |
+
.style.background_gradient(axis=1).background_gradient(cmap='RdYlGn').format(precision=2),
|
364 |
use_container_width=True
|
365 |
)
|