Multichem commited on
Commit
6f7d8c1
·
1 Parent(s): 1b2014e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -18
app.py CHANGED
@@ -348,7 +348,6 @@ with tab3:
348
  total_players = indv_players.Player.values.tolist()
349
  total_dates = gamelog_table.Date.values.tolist()
350
 
351
-
352
  team_var3 = st.multiselect('Which opponent would you like to view?', options = total_teams, key='team_var3')
353
  pos_var3 = st.selectbox('Which position would you like to view?', options = ['PG', 'SG', 'SF', 'PF', 'C'], key='pos_var3')
354
  date_var3 = st.radio("Would you like to view all dates or specific ones?", ('All', 'Specific Dates'), key='date_var3')
@@ -379,21 +378,6 @@ with tab3:
379
  gamelog_table = gamelog_table[gamelog_table['Opp'].isin(team_var3)]
380
  gamelog_display = gamelog_table.reset_index(drop=True)
381
  display = st.container()
382
-
383
- bottom_menu = st.columns((4, 1, 1))
384
- with bottom_menu[2]:
385
- batch_size = st.selectbox("Page Size", options=[25, 50, 100])
386
- with bottom_menu[1]:
387
- total_pages = (
388
- int(len(gamelog_display) / batch_size) if int(len(gamelog_display) / batch_size) > 0 else 1
389
- )
390
- current_page = st.number_input(
391
- "Page", min_value=1, max_value=total_pages, step=1
392
- )
393
- with bottom_menu[0]:
394
- st.markdown(f"Page **{current_page}** of **{total_pages}** ")
395
-
396
-
397
- pages = split_frame(gamelog_display, batch_size)
398
  # pages = pages.set_index('Player')
399
- display.dataframe(data=pages[current_page - 1].style.format(precision=2), height=500, use_container_width=True)
 
348
  total_players = indv_players.Player.values.tolist()
349
  total_dates = gamelog_table.Date.values.tolist()
350
 
 
351
  team_var3 = st.multiselect('Which opponent would you like to view?', options = total_teams, key='team_var3')
352
  pos_var3 = st.selectbox('Which position would you like to view?', options = ['PG', 'SG', 'SF', 'PF', 'C'], key='pos_var3')
353
  date_var3 = st.radio("Would you like to view all dates or specific ones?", ('All', 'Specific Dates'), key='date_var3')
 
378
  gamelog_table = gamelog_table[gamelog_table['Opp'].isin(team_var3)]
379
  gamelog_display = gamelog_table.reset_index(drop=True)
380
  display = st.container()
381
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
382
  # pages = pages.set_index('Player')
383
+ display.dataframe(gamelog_display.style.format(precision=2), height=500, use_container_width=True)