Multichem commited on
Commit
2df260c
1 Parent(s): 15b7018

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -134,12 +134,14 @@ with tab3:
134
 
135
  with col1:
136
  player_check = st.selectbox('Select player to simulate props', options = player_stats['Player'].unique())
137
- prop_type_var = st.selectbox('Select type of prop to simulate', options = ['points', 'rebounds', 'assists', 'blocks', 'steals',
138
  'PRA', 'points+rebounds', 'points+assists', 'rebounds+assists'])
139
 
140
  ou_var = st.selectbox('Select wether it is an over or under', options = ['Over', 'Under'])
141
  if prop_type_var == 'points':
142
  prop_var = st.number_input('Type in the prop offered (i.e 5.5)', min_value = 0.0, max_value = 50.5, value = 15.5, step = .5)
 
 
143
  elif prop_type_var == 'rebounds':
144
  prop_var = st.number_input('Type in the prop offered (i.e 5.5)', min_value = 0.0, max_value = 25.5, value = 5.5, step = .5)
145
  elif prop_type_var == 'assists':
@@ -175,6 +177,8 @@ with tab3:
175
 
176
  if prop_type_var == 'points':
177
  df['Median'] = df['Points']
 
 
178
  elif prop_type_var == 'rebounds':
179
  df['Median'] = df['Rebounds']
180
  elif prop_type_var == 'assists':
 
134
 
135
  with col1:
136
  player_check = st.selectbox('Select player to simulate props', options = player_stats['Player'].unique())
137
+ prop_type_var = st.selectbox('Select type of prop to simulate', options = ['points', 'threes', 'rebounds', 'assists', 'blocks', 'steals',
138
  'PRA', 'points+rebounds', 'points+assists', 'rebounds+assists'])
139
 
140
  ou_var = st.selectbox('Select wether it is an over or under', options = ['Over', 'Under'])
141
  if prop_type_var == 'points':
142
  prop_var = st.number_input('Type in the prop offered (i.e 5.5)', min_value = 0.0, max_value = 50.5, value = 15.5, step = .5)
143
+ elif prop_type_var == 'threes':
144
+ prop_var = st.number_input('Type in the prop offered (i.e 5.5)', min_value = 0.0, max_value = 5.5, value = 1.5, step = .5)
145
  elif prop_type_var == 'rebounds':
146
  prop_var = st.number_input('Type in the prop offered (i.e 5.5)', min_value = 0.0, max_value = 25.5, value = 5.5, step = .5)
147
  elif prop_type_var == 'assists':
 
177
 
178
  if prop_type_var == 'points':
179
  df['Median'] = df['Points']
180
+ elif prop_type_var == 'threes':
181
+ df['Median'] = df['threes']
182
  elif prop_type_var == 'rebounds':
183
  df['Median'] = df['Rebounds']
184
  elif prop_type_var == 'assists':