James McCool
commited on
Commit
·
c704daa
1
Parent(s):
0e826cd
Reset index of combined dataframe in app.py to ensure proper data alignment after concatenation of contest and portfolio data.
Browse files
app.py
CHANGED
|
@@ -213,6 +213,7 @@ with tab1:
|
|
| 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
|
|
|
|
| 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['combined_df'] = st.session_state['combined_df'].reset_index(drop=True)
|
| 217 |
st.session_state['entry_list'].append('Backtesting_upload')
|
| 218 |
else:
|
| 219 |
pass
|