Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -518,9 +518,9 @@ with tab1:
|
|
| 518 |
summary_df = pd.DataFrame({
|
| 519 |
'Metric': ['Min', 'Average', 'Max'],
|
| 520 |
'Salary': [
|
| 521 |
-
st.session_state.Sim_Winner_Display['
|
| 522 |
-
st.session_state.Sim_Winner_Display['
|
| 523 |
-
st.session_state.Sim_Winner_Display['
|
| 524 |
],
|
| 525 |
'Proj': [
|
| 526 |
st.session_state.Sim_Winner_Display['Proj'].min(),
|
|
@@ -547,12 +547,12 @@ with tab1:
|
|
| 547 |
# Display the summary dataframe
|
| 548 |
st.subheader("Summary Statistics")
|
| 549 |
st.dataframe(summary_df.style.format({
|
| 550 |
-
'
|
| 551 |
'Proj': '{:.2f}',
|
| 552 |
'Own': '{:.2%}',
|
| 553 |
'Fantasy': '{:.2f}',
|
| 554 |
'GPP_Proj': '{:.2f}'
|
| 555 |
-
}).background_gradient(cmap='RdYlGn', axis=0, subset=['
|
| 556 |
with st.container():
|
| 557 |
tab1, tab2, tab3, tab4, tab5, tab6, tab7, tab8, tab9 = st.tabs(['Overall Exposures', 'QB Exposures', 'RB-WR-TE Exposures', 'RB Exposures', 'WR Exposures', 'TE Exposures', 'FLEX Exposures', 'DST Exposures', 'Team Exposures'])
|
| 558 |
with tab1:
|
|
|
|
| 518 |
summary_df = pd.DataFrame({
|
| 519 |
'Metric': ['Min', 'Average', 'Max'],
|
| 520 |
'Salary': [
|
| 521 |
+
st.session_state.Sim_Winner_Display['salary'].min(),
|
| 522 |
+
st.session_state.Sim_Winner_Display['salary'].mean(),
|
| 523 |
+
st.session_state.Sim_Winner_Display['salary'].max()
|
| 524 |
],
|
| 525 |
'Proj': [
|
| 526 |
st.session_state.Sim_Winner_Display['Proj'].min(),
|
|
|
|
| 547 |
# Display the summary dataframe
|
| 548 |
st.subheader("Summary Statistics")
|
| 549 |
st.dataframe(summary_df.style.format({
|
| 550 |
+
'salary': '{:.2f}',
|
| 551 |
'Proj': '{:.2f}',
|
| 552 |
'Own': '{:.2%}',
|
| 553 |
'Fantasy': '{:.2f}',
|
| 554 |
'GPP_Proj': '{:.2f}'
|
| 555 |
+
}).background_gradient(cmap='RdYlGn', axis=0, subset=['salary', 'Proj', 'Own', 'Fantasy', 'GPP_Proj']), use_container_width=True)
|
| 556 |
with st.container():
|
| 557 |
tab1, tab2, tab3, tab4, tab5, tab6, tab7, tab8, tab9 = st.tabs(['Overall Exposures', 'QB Exposures', 'RB-WR-TE Exposures', 'RB Exposures', 'WR Exposures', 'TE Exposures', 'FLEX Exposures', 'DST Exposures', 'Team Exposures'])
|
| 558 |
with tab1:
|