Spaces:
Running
Running
James McCool
commited on
Commit
·
83d45be
1
Parent(s):
dc913ed
Update display_proj handling in tab1: comment out index setting and add hide_index option to dataframe display
Browse files
app.py
CHANGED
@@ -393,7 +393,7 @@ with tab1:
|
|
393 |
export_data = display_proj.copy()
|
394 |
|
395 |
|
396 |
-
display_proj = display_proj.set_index('Player')
|
397 |
st.session_state.display_proj = display_proj
|
398 |
|
399 |
with display_container_1:
|
@@ -403,7 +403,7 @@ with tab1:
|
|
403 |
st.session_state.display_proj = st.session_state.display_proj
|
404 |
elif pos_var2 != 'All':
|
405 |
st.session_state.display_proj = st.session_state.display_proj[st.session_state.display_proj['Position'].str.contains(pos_var2)]
|
406 |
-
st.dataframe(st.session_state.display_proj.style.set_properties(**{'font-size': '6pt'}).background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(roo_format, precision=2), height=1000, use_container_width = True)
|
407 |
|
408 |
with display_dl_container_1:
|
409 |
display_dl_container = st.empty()
|
|
|
393 |
export_data = display_proj.copy()
|
394 |
|
395 |
|
396 |
+
# display_proj = display_proj.set_index('Player')
|
397 |
st.session_state.display_proj = display_proj
|
398 |
|
399 |
with display_container_1:
|
|
|
403 |
st.session_state.display_proj = st.session_state.display_proj
|
404 |
elif pos_var2 != 'All':
|
405 |
st.session_state.display_proj = st.session_state.display_proj[st.session_state.display_proj['Position'].str.contains(pos_var2)]
|
406 |
+
st.dataframe(st.session_state.display_proj.style.set_properties(**{'font-size': '6pt'}).background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(roo_format, precision=2), height=1000, use_container_width = True, hide_index=True)
|
407 |
|
408 |
with display_dl_container_1:
|
409 |
display_dl_container = st.empty()
|