Spaces:
Running
Running
James McCool
commited on
Commit
·
7531a91
1
Parent(s):
da2fe63
Enhance overall simulation data presentation in app.py. Introduced tabbed layout for displaying player statistics (Kills, Deaths, Assists, CS) to improve user experience. Each tab presents a filtered view of the overall simulation DataFrame, enhancing clarity and readability of performance metrics.
Browse files
app.py
CHANGED
|
@@ -451,4 +451,13 @@ if st.button("Run"):
|
|
| 451 |
)
|
| 452 |
|
| 453 |
st.subheader("Overall Simulations")
|
| 454 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 451 |
)
|
| 452 |
|
| 453 |
st.subheader("Overall Simulations")
|
| 454 |
+
stat_tabs = st.tabs(["Kills", "Deaths", "Assists", "CS"])
|
| 455 |
+
|
| 456 |
+
for stat, tab in zip(["Kills", "Deaths", "Assists", "CS"], stat_tabs):
|
| 457 |
+
with tab:
|
| 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 |
+
)
|