Multichem commited on
Commit
f7d4c5a
·
1 Parent(s): cc95c78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -133,9 +133,10 @@ with col1:
133
 
134
  with col2:
135
  if split_var1 == 'Season Logs':
136
- st.dataframe(season_long_table.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
 
137
  elif split_var1 == 'Gamelogs':
138
- pagination = st.container()
139
 
140
  bottom_menu = st.columns((4, 1, 1))
141
  with bottom_menu[2]:
@@ -151,4 +152,4 @@ with col2:
151
  st.markdown(f"Page **{current_page}** of **{total_pages}** ")
152
 
153
  pages = split_frame(gamelog_table, batch_size)
154
- pagination.dataframe(data=pages[current_page - 1], use_container_width=True)
 
133
 
134
  with col2:
135
  if split_var1 == 'Season Logs':
136
+ display = st.container()
137
+ display.dataframe(season_long_table.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
138
  elif split_var1 == 'Gamelogs':
139
+ display = st.container()
140
 
141
  bottom_menu = st.columns((4, 1, 1))
142
  with bottom_menu[2]:
 
152
  st.markdown(f"Page **{current_page}** of **{total_pages}** ")
153
 
154
  pages = split_frame(gamelog_table, batch_size)
155
+ display.dataframe(data=pages[current_page - 1].style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width=True)