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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -129,12 +129,13 @@ with col1:
129
  if st.button("Reset Data", key='reset1'):
130
  st.cache_data.clear()
131
  gamelog_table, season_long_table = init_baselines()
132
- split_var1 = st.radio("What table would you like to view?", ('Season Long', 'Gamelogs'), key='split_var1')
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
 
@@ -152,4 +153,4 @@ with col2:
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)
 
129
  if st.button("Reset Data", key='reset1'):
130
  st.cache_data.clear()
131
  gamelog_table, season_long_table = init_baselines()
132
+ split_var1 = st.radio("What table would you like to view?", ('Season Logs', 'Gamelogs'), key='split_var1')
133
 
134
  with col2:
135
  if split_var1 == 'Season Logs':
136
  display = st.container()
137
+ display.dataframe(season_long_table.style.format(precision=2), use_container_width = True)
138
+
139
  elif split_var1 == 'Gamelogs':
140
  display = st.container()
141
 
 
153
  st.markdown(f"Page **{current_page}** of **{total_pages}** ")
154
 
155
  pages = split_frame(gamelog_table, batch_size)
156
+ display.dataframe(data=pages[current_page - 1].style.format(precision=2), use_container_width=True)