Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -109,7 +109,7 @@ with tab3:
|
|
109 |
df_hold_container = st.empty()
|
110 |
|
111 |
with col1:
|
112 |
-
|
113 |
|
114 |
if st.button('Simulate Stat'):
|
115 |
with col2:
|
@@ -122,11 +122,11 @@ with tab3:
|
|
122 |
|
123 |
df.replace("", 0, inplace=True)
|
124 |
|
125 |
-
if
|
126 |
df['Median'] = df['Strikeouts']
|
127 |
-
elif
|
128 |
df['Median'] = df['Wins']
|
129 |
-
elif
|
130 |
df['Median'] = df['Quality_starts']
|
131 |
|
132 |
flex_file = df
|
@@ -177,7 +177,7 @@ with tab4:
|
|
177 |
df_hold_container = st.empty()
|
178 |
|
179 |
with col1:
|
180 |
-
|
181 |
|
182 |
if st.button('Simulate Stat'):
|
183 |
with col2:
|
@@ -190,11 +190,11 @@ with tab4:
|
|
190 |
|
191 |
df.replace("", 0, inplace=True)
|
192 |
|
193 |
-
if
|
194 |
df['Median'] = df['Strikeouts']
|
195 |
-
elif
|
196 |
df['Median'] = df['Wins']
|
197 |
-
elif
|
198 |
df['Median'] = df['Quality_starts']
|
199 |
|
200 |
flex_file = df
|
|
|
109 |
df_hold_container = st.empty()
|
110 |
|
111 |
with col1:
|
112 |
+
prop_type_var_sp = st.selectbox('Select type of prop to simulate', options = ['Strikeouts', 'Wins', 'Quality_starts'])
|
113 |
|
114 |
if st.button('Simulate Stat'):
|
115 |
with col2:
|
|
|
122 |
|
123 |
df.replace("", 0, inplace=True)
|
124 |
|
125 |
+
if prop_type_var_sp == 'Strikeouts':
|
126 |
df['Median'] = df['Strikeouts']
|
127 |
+
elif prop_type_var_sp == 'Wins':
|
128 |
df['Median'] = df['Wins']
|
129 |
+
elif prop_type_var_sp == 'Quality_starts':
|
130 |
df['Median'] = df['Quality_starts']
|
131 |
|
132 |
flex_file = df
|
|
|
177 |
df_hold_container = st.empty()
|
178 |
|
179 |
with col1:
|
180 |
+
prop_type_var_h = st.selectbox('Select type of prop to simulate', options = ['Strikeouts', 'Wins', 'Quality_starts'])
|
181 |
|
182 |
if st.button('Simulate Stat'):
|
183 |
with col2:
|
|
|
190 |
|
191 |
df.replace("", 0, inplace=True)
|
192 |
|
193 |
+
if prop_type_var_h == 'Strikeouts':
|
194 |
df['Median'] = df['Strikeouts']
|
195 |
+
elif prop_type_var_h == 'Wins':
|
196 |
df['Median'] = df['Wins']
|
197 |
+
elif prop_type_var_h == 'Quality_starts':
|
198 |
df['Median'] = df['Quality_starts']
|
199 |
|
200 |
flex_file = df
|