James McCool commited on
Commit
be3b754
·
1 Parent(s): f79125f

Update column definition in pagination function for Streamlit app

Browse files

- Changed the column definition in the display_paginated_table function to use a list for better clarity and maintainability.
- This adjustment enhances the readability of the layout configuration for the pagination controls.

Files changed (1) hide show
  1. src/streamlit_app.py +1 -1
src/streamlit_app.py CHANGED
@@ -72,7 +72,7 @@ def display_paginated_table(df, page_size):
72
 
73
  st.dataframe(current_page_data.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn_r').format(precision=2), height = 500, use_container_width = True, hide_index = True)
74
 
75
- col1, col2, col3, col4 = st.columns(1, 2, 2, 1)
76
  with col1:
77
  if st.button('⏮️ First', disabled=st.session_state.current_page == 0):
78
  st.session_state.current_page = 0
 
72
 
73
  st.dataframe(current_page_data.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn_r').format(precision=2), height = 500, use_container_width = True, hide_index = True)
74
 
75
+ col1, col2, col3, col4 = st.columns([1, 2, 2, 1])
76
  with col1:
77
  if st.button('⏮️ First', disabled=st.session_state.current_page == 0):
78
  st.session_state.current_page = 0