Spaces:
Running
Running
James McCool
commited on
Commit
·
da2fe63
1
Parent(s):
9c02fea
Refactor overall simulation DataFrame in app.py. Updated overall_sim_df to drop duplicates based on 'Player' and 'Stat', simplifying data structure and enhancing clarity. Adjusted data presentation by removing background gradient styling for improved readability of simulation results.
Browse files
app.py
CHANGED
@@ -424,7 +424,8 @@ if st.button("Run"):
|
|
424 |
'90%': percentiles[stat][4]
|
425 |
})
|
426 |
|
427 |
-
overall_sim_df = pd.DataFrame(overall_sim_results)
|
|
|
428 |
|
429 |
tab1, tab2 = st.tabs(["Team Data", "Opponent Data"])
|
430 |
with tab1:
|
@@ -450,4 +451,4 @@ if st.button("Run"):
|
|
450 |
)
|
451 |
|
452 |
st.subheader("Overall Simulations")
|
453 |
-
st.dataframe(overall_sim_df.style.
|
|
|
424 |
'90%': percentiles[stat][4]
|
425 |
})
|
426 |
|
427 |
+
overall_sim_df = pd.DataFrame(overall_sim_results)
|
428 |
+
overall_sim_df = overall_sim_df.drop_duplicates(subset = ['Player', 'Stat'])
|
429 |
|
430 |
tab1, tab2 = st.tabs(["Team Data", "Opponent Data"])
|
431 |
with tab1:
|
|
|
451 |
)
|
452 |
|
453 |
st.subheader("Overall Simulations")
|
454 |
+
st.dataframe(overall_sim_df.style.format(display_formats, precision=2), use_container_width = True)
|