Spaces:
Sleeping
Sleeping
James McCool
commited on
Commit
·
42ebd1d
1
Parent(s):
388f2db
Add debug print statement in 'Data Load' section of 'app.py' to log the count of missing values in the portfolio, aiding in data validation during file loading.
Browse files
app.py
CHANGED
|
@@ -321,6 +321,7 @@ if selected_tab == 'Data Load':
|
|
| 321 |
st.session_state['export_portfolio'], st.session_state['portfolio'] = load_file(portfolio_file, site_var, type_var, sport_var, 'portfolio')
|
| 322 |
st.session_state['export_portfolio'] = st.session_state['export_portfolio'].dropna(how='all')
|
| 323 |
st.session_state['export_portfolio'] = st.session_state['export_portfolio'].reset_index(drop=True)
|
|
|
|
| 324 |
st.session_state['portfolio'] = st.session_state['portfolio'].dropna(how='all')
|
| 325 |
st.session_state['portfolio'] = st.session_state['portfolio'].reset_index(drop=True)
|
| 326 |
# Check if Stack column exists in the portfolio
|
|
|
|
| 321 |
st.session_state['export_portfolio'], st.session_state['portfolio'] = load_file(portfolio_file, site_var, type_var, sport_var, 'portfolio')
|
| 322 |
st.session_state['export_portfolio'] = st.session_state['export_portfolio'].dropna(how='all')
|
| 323 |
st.session_state['export_portfolio'] = st.session_state['export_portfolio'].reset_index(drop=True)
|
| 324 |
+
print(st.session_state['portfolio'].isna().sum())
|
| 325 |
st.session_state['portfolio'] = st.session_state['portfolio'].dropna(how='all')
|
| 326 |
st.session_state['portfolio'] = st.session_state['portfolio'].reset_index(drop=True)
|
| 327 |
# Check if Stack column exists in the portfolio
|