Jan Mühlnikel commited on
Commit
4e1bb49
·
1 Parent(s): 5dbafb0

added crs to result table

Browse files
Files changed (1) hide show
  1. modules/singlematch_result_table.py +16 -1
modules/singlematch_result_table.py CHANGED
@@ -14,7 +14,7 @@ def show_single_table(selected_project_index, projects_df, result_df):
14
  sel_p_row['sdg_list'] = sel_p_row['sgd_pred_code'].apply(lambda x: x.split(";")[:-1] if x.endswith(";") else x.split(";"))
15
 
16
  st.dataframe(
17
- sel_p_row[["iati_id", "title_main", "orga_abbreviation", "client", "description_main", "country_name", "country_flag"]],
18
  use_container_width = True,
19
  height = 35 + 35 * len(sel_p_row),
20
  column_config={
@@ -59,6 +59,21 @@ def show_single_table(selected_project_index, projects_df, result_df):
59
  help="country flag",
60
  width="small"
61
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
  },
63
  hide_index=True,
64
  )
 
14
  sel_p_row['sdg_list'] = sel_p_row['sgd_pred_code'].apply(lambda x: x.split(";")[:-1] if x.endswith(";") else x.split(";"))
15
 
16
  st.dataframe(
17
+ sel_p_row[["iati_id", "title_main", "orga_abbreviation", "client", "description_main", "country_name", "country_flag", "crs_3_code_list", "crs_5_code_list", "sdg_list"]],
18
  use_container_width = True,
19
  height = 35 + 35 * len(sel_p_row),
20
  column_config={
 
59
  help="country flag",
60
  width="small"
61
  ),
62
+ "sdg_list": st.column_config.ListColumn(
63
+ "SDG Prediction",
64
+ help="Prediction of SDG's",
65
+ width="small"
66
+ ),
67
+ "crs_3_code_list": st.column_config.ListColumn(
68
+ "CRS 3",
69
+ help="CRS 3 code given by organization",
70
+ width="small"
71
+ ),
72
+ "crs_5_code_list": st.column_config.ListColumn(
73
+ "CRS 5",
74
+ help="CRS 5 code given by organization",
75
+ width="small"
76
+ ),
77
  },
78
  hide_index=True,
79
  )