James McCool
commited on
Commit
·
6c7cd22
1
Parent(s):
099dd08
Update dataframe display logic in app.py: use current_page_data for improved clarity in pagination rendering.
Browse files
app.py
CHANGED
@@ -938,7 +938,7 @@ with tab3:
|
|
938 |
current_page_data = st.session_state['portfolio'].iloc[start_idx:end_idx]
|
939 |
# Display the paginated dataframe first
|
940 |
st.dataframe(
|
941 |
-
|
942 |
.background_gradient(axis=0)
|
943 |
.background_gradient(cmap='RdYlGn')
|
944 |
.background_gradient(cmap='RdYlGn_r', subset=['Finish_percentile', 'Own', 'Dupes'])
|
|
|
938 |
current_page_data = st.session_state['portfolio'].iloc[start_idx:end_idx]
|
939 |
# Display the paginated dataframe first
|
940 |
st.dataframe(
|
941 |
+
current_page_data.style
|
942 |
.background_gradient(axis=0)
|
943 |
.background_gradient(cmap='RdYlGn')
|
944 |
.background_gradient(cmap='RdYlGn_r', subset=['Finish_percentile', 'Own', 'Dupes'])
|