Spaces:
Sleeping
Sleeping
James McCool
commited on
Commit
·
ff52041
1
Parent(s):
f6e8cf1
Update final_Proj DataFrame in Pivot Finder to exclude 'Player' column for simplified display in 'Simple' view.
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -380,7 +380,7 @@ if selected_tab == 'Pivot Finder':
|
|
| 380 |
with displayholder.container():
|
| 381 |
if 'final_Proj' in st.session_state:
|
| 382 |
if view_var == 'Simple':
|
| 383 |
-
st.session_state['final_Proj'] = st.session_state['final_Proj'][['
|
| 384 |
st.dataframe(st.session_state['final_Proj'].style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(player_roo_format, precision=2), use_container_width = True)
|
| 385 |
if view_var == 'Advanced':
|
| 386 |
st.dataframe(st.session_state['final_Proj'].style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(player_roo_format, precision=2), use_container_width = True)
|
|
|
|
| 380 |
with displayholder.container():
|
| 381 |
if 'final_Proj' in st.session_state:
|
| 382 |
if view_var == 'Simple':
|
| 383 |
+
st.session_state['final_Proj'] = st.session_state['final_Proj'][['Position', 'Team', 'Salary', 'Median', 'Own', 'LevX']]
|
| 384 |
st.dataframe(st.session_state['final_Proj'].style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(player_roo_format, precision=2), use_container_width = True)
|
| 385 |
if view_var == 'Advanced':
|
| 386 |
st.dataframe(st.session_state['final_Proj'].style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(player_roo_format, precision=2), use_container_width = True)
|