James McCool commited on
Commit
7a0cd57
·
1 Parent(s): 834a92c

Update position and team selection prompts in hitter tab of Streamlit app for clarity

Browse files

- Changed the position selection prompt to a more descriptive question, enhancing user understanding of options.
- Updated the team selection prompt for consistency in phrasing, improving overall user experience in the hitter tab.

Files changed (1) hide show
  1. src/streamlit_app.py +2 -2
src/streamlit_app.py CHANGED
@@ -181,14 +181,14 @@ with hitter_tab:
181
  with col3:
182
  splits_var_hitter = st.selectbox('Splits', ['Overall', 'RHP', 'LHP'], key = 'splits_var_hitter')
183
  with col4:
184
- position_type_hitter = st.multiselect('Select Positions', ['All', 'Specific'], key = 'position_var_hitter')
185
  if position_type_hitter == 'Specific':
186
  position_var_hitter = st.multiselect('Positions', ['C', '1B', '2B', '3B', 'SS', 'OF'], key = 'position_var_hitter')
187
  else:
188
  position_var_hitter = None
189
  st.write('All Positions selected')
190
  with col5:
191
- team_type_hitter = st.selectbox('Do you want to view all teams or Specific ones?', ['All', 'Specific'], key = 'team_type_hitter')
192
  if team_type_hitter == 'Specific':
193
  team_var_hitter = st.multiselect('Select Teams', slate_hitters['Team'].unique(), key = 'team_var_hitter')
194
  else:
 
181
  with col3:
182
  splits_var_hitter = st.selectbox('Splits', ['Overall', 'RHP', 'LHP'], key = 'splits_var_hitter')
183
  with col4:
184
+ position_type_hitter = st.selectbox('Do you want to view all Positions or Specific ones?', ['All', 'Specific'], key = 'position_type_hitter')
185
  if position_type_hitter == 'Specific':
186
  position_var_hitter = st.multiselect('Positions', ['C', '1B', '2B', '3B', 'SS', 'OF'], key = 'position_var_hitter')
187
  else:
188
  position_var_hitter = None
189
  st.write('All Positions selected')
190
  with col5:
191
+ team_type_hitter = st.selectbox('Do you want to view all Teams or Specific ones?', ['All', 'Specific'], key = 'team_type_hitter')
192
  if team_type_hitter == 'Specific':
193
  team_var_hitter = st.multiselect('Select Teams', slate_hitters['Team'].unique(), key = 'team_var_hitter')
194
  else: