Multichem commited on
Commit
a32c316
·
1 Parent(s): a781a50

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -217,7 +217,7 @@ with tab1:
217
  gamelog_table = gamelog_table[gamelog_table['Player'].isin(player_var1)]
218
  season_long_table = seasonlong_build(gamelog_table)
219
  season_long_table = season_long_table.set_index('Player')
220
- display.dataframe(season_long_table.style.format(precision=2), height=1000, use_container_width = True)
221
 
222
  elif split_var1 == 'Gamelogs':
223
  gamelog_table = gamelog_table[gamelog_table['Date'] >= low_date]
@@ -245,7 +245,7 @@ with tab1:
245
 
246
  pages = split_frame(gamelog_table, batch_size)
247
  # pages = pages.set_index('Player')
248
- display.dataframe(data=pages[current_page - 1].style.format(precision=2), height=1000, use_container_width=True)
249
 
250
  with tab2:
251
  col1, col2 = st.columns([1, 9])
@@ -300,4 +300,4 @@ with tab2:
300
  gamelog_table = gamelog_table[gamelog_table['Min'] <= min_var1_t2[1]]
301
  gamelog_table = gamelog_table[gamelog_table['Player'].isin(corr_var1_t2)]
302
  corr_display = run_corr(gamelog_table)
303
- display.dataframe(corr_display.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), height=1000, use_container_width = True)
 
217
  gamelog_table = gamelog_table[gamelog_table['Player'].isin(player_var1)]
218
  season_long_table = seasonlong_build(gamelog_table)
219
  season_long_table = season_long_table.set_index('Player')
220
+ display.dataframe(season_long_table.style.format(precision=2), height=750, use_container_width = True)
221
 
222
  elif split_var1 == 'Gamelogs':
223
  gamelog_table = gamelog_table[gamelog_table['Date'] >= low_date]
 
245
 
246
  pages = split_frame(gamelog_table, batch_size)
247
  # pages = pages.set_index('Player')
248
+ display.dataframe(data=pages[current_page - 1].style.format(precision=2), height=500, use_container_width=True)
249
 
250
  with tab2:
251
  col1, col2 = st.columns([1, 9])
 
300
  gamelog_table = gamelog_table[gamelog_table['Min'] <= min_var1_t2[1]]
301
  gamelog_table = gamelog_table[gamelog_table['Player'].isin(corr_var1_t2)]
302
  corr_display = run_corr(gamelog_table)
303
+ display.dataframe(corr_display.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)