James McCool commited on
Commit
409a345
·
1 Parent(s): a589040
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1980,6 +1980,7 @@ if selected_tab == 'Manage Portfolio':
1980
  download_port, merge_port, clear_export, add_rows_col, remove_rows_col, blank_export_col = st.columns([1, 1, 1, 2, 2, 6])
1981
  with download_port:
1982
  st.download_button(label="Download Portfolio", data=st.session_state['export_file'].to_csv(index=False), file_name="portfolio.csv", mime="text/csv")
 
1983
  with merge_port:
1984
  if st.button("Add all to Custom Export"):
1985
  st.session_state['export_base'] = pd.concat([st.session_state['export_base'], st.session_state['export_merge']])
@@ -2000,7 +2001,7 @@ if selected_tab == 'Manage Portfolio':
2000
  st.session_state['export_base'] = pd.concat([st.session_state['export_base'], st.session_state['export_merge'].loc[select_custom_index]])
2001
  st.session_state['export_base'] = st.session_state['export_base'].drop_duplicates()
2002
  st.session_state['export_base'] = st.session_state['export_base'].reset_index(drop=True)
2003
-
2004
  with remove_rows_col:
2005
  remove_custom_index = st.multiselect("Remove rows (based on first column):", options=st.session_state['display_frame'].index, default=[])
2006
  if st.button("Remove selected from Display"):
 
1980
  download_port, merge_port, clear_export, add_rows_col, remove_rows_col, blank_export_col = st.columns([1, 1, 1, 2, 2, 6])
1981
  with download_port:
1982
  st.download_button(label="Download Portfolio", data=st.session_state['export_file'].to_csv(index=False), file_name="portfolio.csv", mime="text/csv")
1983
+
1984
  with merge_port:
1985
  if st.button("Add all to Custom Export"):
1986
  st.session_state['export_base'] = pd.concat([st.session_state['export_base'], st.session_state['export_merge']])
 
2001
  st.session_state['export_base'] = pd.concat([st.session_state['export_base'], st.session_state['export_merge'].loc[select_custom_index]])
2002
  st.session_state['export_base'] = st.session_state['export_base'].drop_duplicates()
2003
  st.session_state['export_base'] = st.session_state['export_base'].reset_index(drop=True)
2004
+
2005
  with remove_rows_col:
2006
  remove_custom_index = st.multiselect("Remove rows (based on first column):", options=st.session_state['display_frame'].index, default=[])
2007
  if st.button("Remove selected from Display"):