James McCool
commited on
Commit
·
0e826cd
1
Parent(s):
ffe9696
Reduce displayed rows for contest and portfolio data in app.py to improve performance and user experience. Added entry to session state for backtesting uploads.
Browse files
app.py
CHANGED
|
@@ -208,11 +208,12 @@ with tab1:
|
|
| 208 |
except:
|
| 209 |
pass
|
| 210 |
st.write('Contest data:')
|
| 211 |
-
st.dataframe(st.session_state['Contest'].head(
|
| 212 |
if 'portfolio_df' in st.session_state:
|
| 213 |
st.write('Portfolio data:')
|
| 214 |
-
st.dataframe(st.session_state['portfolio_df'].head(
|
| 215 |
st.session_state['combined_df'] = pd.concat([st.session_state['Contest'], st.session_state['portfolio_df']], ignore_index=True)
|
|
|
|
| 216 |
else:
|
| 217 |
pass
|
| 218 |
|
|
|
|
| 208 |
except:
|
| 209 |
pass
|
| 210 |
st.write('Contest data:')
|
| 211 |
+
st.dataframe(st.session_state['Contest'].head(25))
|
| 212 |
if 'portfolio_df' in st.session_state:
|
| 213 |
st.write('Portfolio data:')
|
| 214 |
+
st.dataframe(st.session_state['portfolio_df'].head(25))
|
| 215 |
st.session_state['combined_df'] = pd.concat([st.session_state['Contest'], st.session_state['portfolio_df']], ignore_index=True)
|
| 216 |
+
st.session_state['entry_list'].append('Backtesting_upload')
|
| 217 |
else:
|
| 218 |
pass
|
| 219 |
|