Multichem commited on
Commit
a18a6e0
·
verified ·
1 Parent(s): 78dd603

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -109,7 +109,7 @@ with tab3:
109
  df_hold_container = st.empty()
110
 
111
  with col1:
112
- prop_type_var = st.selectbox('Select type of prop to simulate', options = ['Strikeouts', 'Wins', 'Quality_starts'])
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 prop_type_var == 'Strikeouts':
126
  df['Median'] = df['Strikeouts']
127
- elif prop_type_var == 'Wins':
128
  df['Median'] = df['Wins']
129
- elif prop_type_var == 'Quality_starts':
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
- prop_type_var = st.selectbox('Select type of prop to simulate', options = ['Strikeouts', 'Wins', 'Quality_starts'])
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 prop_type_var == 'Strikeouts':
194
  df['Median'] = df['Strikeouts']
195
- elif prop_type_var == 'Wins':
196
  df['Median'] = df['Wins']
197
- elif prop_type_var == 'Quality_starts':
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