Jan Mühlnikel commited on
Commit
e328e58
·
1 Parent(s): d58c7bc

show filtered df in spm#

Browse files
Files changed (1) hide show
  1. similarity_page.py +3 -4
similarity_page.py CHANGED
@@ -348,9 +348,8 @@ def show_single_matching_page():
348
  filtered_df_s = filter_single(projects_df, country_code_list, orga_code_list)
349
  st.dataframe(filtered_df_s)
350
 
351
- #if isinstance(filtered_df_s, pd.DataFrame) and len(filtered_df_s) != 0:
352
 
353
-
354
- #top_projects_df = find_similar(selected_index, sim_matrix, projects_df, 10)
355
- #show_single_table(top_projects_df)
356
 
 
348
  filtered_df_s = filter_single(projects_df, country_code_list, orga_code_list)
349
  st.dataframe(filtered_df_s)
350
 
351
+ if isinstance(filtered_df_s, pd.DataFrame) and len(filtered_df_s) != 0:
352
 
353
+ top_projects_df = find_similar(selected_index, sim_matrix, filtered_df_s, 10)
354
+ show_single_table(top_projects_df)
 
355