Spaces:
Running
Running
James McCool
commited on
Commit
·
87c8996
1
Parent(s):
a138059
Sort display frame by projected wins in descending order
Browse files
app.py
CHANGED
@@ -80,6 +80,8 @@ with tab1:
|
|
80 |
export_frame_team = raw_frame[['Team', '2B', 'HR', 'SB', 'P_SO', 'P_H', 'P_R', 'P_HR', 'P_BB', 'LY Added', 'Added', 'LY Adj Wins', 'Adj Wins', 'Vegas', 'Proj wins', 'Diff']]
|
81 |
export_frame_team = export_frame_team.sort_values(by='Proj wins', ascending=False)
|
82 |
disp_frame = raw_frame[['Team', '2B', 'HR', 'SB', 'P_SO', 'P_H', 'P_R', 'P_HR', 'P_BB', 'LY Added', 'Added', 'LY Adj Wins', 'Adj Wins', 'Vegas', 'Proj wins', 'Diff']]
|
|
|
|
|
83 |
|
84 |
st.dataframe(disp_frame.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), height = 1000, use_container_width = True)
|
85 |
|
|
|
80 |
export_frame_team = raw_frame[['Team', '2B', 'HR', 'SB', 'P_SO', 'P_H', 'P_R', 'P_HR', 'P_BB', 'LY Added', 'Added', 'LY Adj Wins', 'Adj Wins', 'Vegas', 'Proj wins', 'Diff']]
|
81 |
export_frame_team = export_frame_team.sort_values(by='Proj wins', ascending=False)
|
82 |
disp_frame = raw_frame[['Team', '2B', 'HR', 'SB', 'P_SO', 'P_H', 'P_R', 'P_HR', 'P_BB', 'LY Added', 'Added', 'LY Adj Wins', 'Adj Wins', 'Vegas', 'Proj wins', 'Diff']]
|
83 |
+
disp_frame = disp_frame.sort_values(by='Proj wins', ascending=False)
|
84 |
+
|
85 |
|
86 |
st.dataframe(disp_frame.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), height = 1000, use_container_width = True)
|
87 |
|