Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -101,21 +101,16 @@ with tab2:
|
|
101 |
team_var2 = st.multiselect('Which teams would you like to include in the ROO?', options = raw_baselines['Team'].unique(), key='team_var2')
|
102 |
elif split_var2 == 'Full Slate Run':
|
103 |
team_var2 = raw_baselines.Team.values.tolist()
|
104 |
-
pos_var2 = st.selectbox('View specific position?', options = ['All', 'PG', 'SG', 'SF', 'PF', 'C'])
|
105 |
|
106 |
with col2:
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
display_proj = raw_baselines[raw_baselines['Team'].isin(team_var2)]
|
113 |
-
|
114 |
-
st.session_state.display_proj = display_proj
|
115 |
-
|
116 |
-
hold_container = st.empty()
|
117 |
|
118 |
-
with
|
119 |
display_container = st.empty()
|
120 |
if 'display_proj' in st.session_state:
|
121 |
if pos_var2 == 'All':
|
@@ -124,7 +119,7 @@ with tab2:
|
|
124 |
st.session_state.display_proj = st.session_state.display_proj[st.session_state.display_proj['Position'].str.contains(pos_var2)]
|
125 |
st.dataframe(st.session_state.display_proj.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
|
126 |
|
127 |
-
with
|
128 |
display_dl_container = st.empty()
|
129 |
if 'display_proj' in st.session_state:
|
130 |
st.download_button(
|
|
|
101 |
team_var2 = st.multiselect('Which teams would you like to include in the ROO?', options = raw_baselines['Team'].unique(), key='team_var2')
|
102 |
elif split_var2 == 'Full Slate Run':
|
103 |
team_var2 = raw_baselines.Team.values.tolist()
|
104 |
+
pos_var2 = st.selectbox('View specific position?', options = ['All', 'PG', 'SG', 'SF', 'PF', 'C'], key='pos_var2')
|
105 |
|
106 |
with col2:
|
107 |
+
display_container_1 = st.empty()
|
108 |
+
display_dl_container_1 = st.empty()
|
109 |
+
display_proj = raw_baselines[raw_baselines['Team'].isin(team_var2)]
|
110 |
+
|
111 |
+
st.session_state.display_proj = display_proj
|
|
|
|
|
|
|
|
|
|
|
112 |
|
113 |
+
with display_container_1:
|
114 |
display_container = st.empty()
|
115 |
if 'display_proj' in st.session_state:
|
116 |
if pos_var2 == 'All':
|
|
|
119 |
st.session_state.display_proj = st.session_state.display_proj[st.session_state.display_proj['Position'].str.contains(pos_var2)]
|
120 |
st.dataframe(st.session_state.display_proj.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
|
121 |
|
122 |
+
with display_dl_container_1:
|
123 |
display_dl_container = st.empty()
|
124 |
if 'display_proj' in st.session_state:
|
125 |
st.download_button(
|