Spaces:
Running
Running
James McCool
commited on
Commit
·
30e8a79
1
Parent(s):
80f4f9c
Update Streamlit app to sort display frame by 'Binom_xHR' before rendering, enhancing data presentation and allowing for better visibility of key metrics.
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
@@ -33,7 +33,7 @@ disp_options = st.radio("Display options:", options = ['Exclude DFS Info', 'Incl
|
|
33 |
if disp_options == 'Exclude DFS Info':
|
34 |
st.session_state['disp_frame'] = hr_frame.drop(columns=['Salary', 'Position', 'FD_Position', 'Order'])
|
35 |
else:
|
36 |
-
st.session_state['disp_frame'] = hr_frame.
|
37 |
|
38 |
if 'disp_frame' in st.session_state:
|
39 |
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, hide_index = True)
|
|
|
33 |
if disp_options == 'Exclude DFS Info':
|
34 |
st.session_state['disp_frame'] = hr_frame.drop(columns=['Salary', 'Position', 'FD_Position', 'Order'])
|
35 |
else:
|
36 |
+
st.session_state['disp_frame'] = hr_frame.sort_values(by='Binom_xHR', ascending=False)
|
37 |
|
38 |
if 'disp_frame' in st.session_state:
|
39 |
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, hide_index = True)
|