Spaces:
Running
Running
James McCool
commited on
Commit
·
f47294a
1
Parent(s):
94d3b9d
Update display_proj assignment in tab1: set index to "Player" with drop option for improved data handling
Browse files
app.py
CHANGED
@@ -395,7 +395,7 @@ with tab1:
|
|
395 |
|
396 |
|
397 |
# display_proj = display_proj.set_index('Player')
|
398 |
-
st.session_state.display_proj = display_proj
|
399 |
|
400 |
with display_container_1:
|
401 |
display_container = st.empty()
|
@@ -405,15 +405,7 @@ with tab1:
|
|
405 |
elif pos_var2 != 'All':
|
406 |
st.session_state.display_proj = st.session_state.display_proj[st.session_state.display_proj['Position'].str.contains(pos_var2)]
|
407 |
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),
|
408 |
-
|
409 |
-
"Player": st.column_config.Column(
|
410 |
-
"Player",
|
411 |
-
width="small",
|
412 |
-
max_width=100,
|
413 |
-
min_width=100,
|
414 |
-
sticky=True
|
415 |
-
)},
|
416 |
-
height=1000, use_container_width = True, hide_index=True)
|
417 |
|
418 |
with display_dl_container_1:
|
419 |
display_dl_container = st.empty()
|
|
|
395 |
|
396 |
|
397 |
# display_proj = display_proj.set_index('Player')
|
398 |
+
st.session_state.display_proj = display_proj.set_index('Player', drop=True)
|
399 |
|
400 |
with display_container_1:
|
401 |
display_container = st.empty()
|
|
|
405 |
elif pos_var2 != 'All':
|
406 |
st.session_state.display_proj = st.session_state.display_proj[st.session_state.display_proj['Position'].str.contains(pos_var2)]
|
407 |
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),
|
408 |
+
height=1000, use_container_width = True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
409 |
|
410 |
with display_dl_container_1:
|
411 |
display_dl_container = st.empty()
|