Spaces:
Running
Running
James McCool
commited on
Commit
·
7d2ca0f
1
Parent(s):
63ad7ef
Update Streamlit app to set 'Player' as the index for the display frame, enhancing data organization and improving clarity in the presentation of metrics.
Browse files- src/streamlit_app.py +3 -1
src/streamlit_app.py
CHANGED
@@ -41,5 +41,7 @@ else:
|
|
41 |
st.session_state['disp_frame'] = hr_frame.copy()
|
42 |
st.session_state['disp_frame'] = st.session_state['disp_frame'].sort_values(by='Binom_xHR', ascending=False)
|
43 |
|
|
|
|
|
44 |
if 'disp_frame' in st.session_state:
|
45 |
-
st.dataframe(st.session_state['disp_frame'].style.background_gradient(axis=0).background_gradient(cmap = 'RdYlGn').format(precision=2), height=1200, use_container_width = True
|
|
|
41 |
st.session_state['disp_frame'] = hr_frame.copy()
|
42 |
st.session_state['disp_frame'] = st.session_state['disp_frame'].sort_values(by='Binom_xHR', ascending=False)
|
43 |
|
44 |
+
st.session_state['disp_frame'] = st.session_state['disp_frame'].set_index('Player', drop = True)
|
45 |
+
|
46 |
if 'disp_frame' in st.session_state:
|
47 |
+
st.dataframe(st.session_state['disp_frame'].style.background_gradient(axis=0).background_gradient(cmap = 'RdYlGn').format(precision=2), height=1200, use_container_width = True)
|