Jan Mühlnikel commited on
Commit
b199e73
1 Parent(s): f73005b

show selected pj

Browse files
Files changed (1) hide show
  1. similarity_page.py +1 -13
similarity_page.py CHANGED
@@ -336,20 +336,8 @@ def show_single_matching_page():
336
  #selected_index = None
337
  if project_option:
338
  selected_index = search_list.index(project_option)
 
339
 
340
- """
341
- if filterd_country_only_checkbox_:
342
- country = projects_df.iloc[selected_index]["country"]
343
- same_country_df = projects_df[projects_df['country'] == country]
344
- else:
345
- same_country_df = projects_df
346
-
347
- if different_orga_checkbox_:
348
- orga = projects_df.iloc[selected_index]["orga_abbreviation"]
349
- different_orga_df = same_country_df[same_country_df['orga_abbreviation'] != orga]
350
- else:
351
- different_orga_df = same_country_df
352
- """
353
  top_projects_df = find_similar(selected_index, sim_matrix, projects_df, 10)
354
  show_single_table(top_projects_df)
355
 
 
336
  #selected_index = None
337
  if project_option:
338
  selected_index = search_list.index(project_option)
339
+ st.dataframe(projects_df.iloc[selected_index])
340
 
 
 
 
 
 
 
 
 
 
 
 
 
 
341
  top_projects_df = find_similar(selected_index, sim_matrix, projects_df, 10)
342
  show_single_table(top_projects_df)
343