Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -133,9 +133,10 @@ with col1:
|
|
| 133 |
|
| 134 |
with col2:
|
| 135 |
if split_var1 == 'Season Logs':
|
| 136 |
-
st.
|
|
|
|
| 137 |
elif split_var1 == 'Gamelogs':
|
| 138 |
-
|
| 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 |
-
|
|
|
|
| 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)
|