James McCool
commited on
Commit
·
ac15dde
1
Parent(s):
31ba272
Replace dataframe display with table in app.py for improved performance and clarity
Browse files- Updated the display method from st.dataframe to st.table for paginated data, enhancing rendering speed and user experience.
- Removed unnecessary styling to streamline the presentation of data in the application.
app.py
CHANGED
@@ -201,11 +201,8 @@ with tab2:
|
|
201 |
end_idx = min((st.session_state.current_page + 1) * rows_per_page, total_rows)
|
202 |
|
203 |
# Display the paginated dataframe
|
204 |
-
st.
|
205 |
-
working_df.iloc[start_idx:end_idx]
|
206 |
-
.background_gradient(axis=0)
|
207 |
-
.background_gradient(cmap='RdYlGn')
|
208 |
-
.format(precision=2),
|
209 |
height=1000,
|
210 |
use_container_width=True,
|
211 |
hide_index=True
|
|
|
201 |
end_idx = min((st.session_state.current_page + 1) * rows_per_page, total_rows)
|
202 |
|
203 |
# Display the paginated dataframe
|
204 |
+
st.table(
|
205 |
+
working_df.iloc[start_idx:end_idx],
|
|
|
|
|
|
|
206 |
height=1000,
|
207 |
use_container_width=True,
|
208 |
hide_index=True
|