Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -557,6 +557,7 @@ with tab1:
|
|
557 |
'Fantasy': '{:.2f}',
|
558 |
'GPP_Proj': '{:.2f}'
|
559 |
}).background_gradient(cmap='RdYlGn', axis=0, subset=['Salary', 'Proj', 'Own', 'Fantasy', 'GPP_Proj']), use_container_width=True)
|
|
|
560 |
with tab2:
|
561 |
if 'Sim_Winner_Display' in st.session_state:
|
562 |
# Apply position mapping to FLEX column
|
@@ -567,7 +568,7 @@ with tab1:
|
|
567 |
|
568 |
# Calculate average statistics for each FLEX position
|
569 |
flex_stats = st.session_state.Sim_Winner_Display.groupby(flex_positions).agg({
|
570 |
-
'
|
571 |
'Own': 'mean',
|
572 |
'Fantasy': 'mean',
|
573 |
'GPP_Proj': 'mean'
|
|
|
557 |
'Fantasy': '{:.2f}',
|
558 |
'GPP_Proj': '{:.2f}'
|
559 |
}).background_gradient(cmap='RdYlGn', axis=0, subset=['Salary', 'Proj', 'Own', 'Fantasy', 'GPP_Proj']), use_container_width=True)
|
560 |
+
|
561 |
with tab2:
|
562 |
if 'Sim_Winner_Display' in st.session_state:
|
563 |
# Apply position mapping to FLEX column
|
|
|
568 |
|
569 |
# Calculate average statistics for each FLEX position
|
570 |
flex_stats = st.session_state.Sim_Winner_Display.groupby(flex_positions).agg({
|
571 |
+
'proj': 'mean',
|
572 |
'Own': 'mean',
|
573 |
'Fantasy': 'mean',
|
574 |
'GPP_Proj': 'mean'
|