prashant
commited on
Commit
•
aa8662e
1
Parent(s):
d1853f6
updating sdg
Browse files- appStore/sdg_analysis.py +1 -1
- utils/sdg_classifier.py +1 -1
appStore/sdg_analysis.py
CHANGED
@@ -125,7 +125,7 @@ def app():
|
|
125 |
ax.pie(x['count'], colors=colors, radius=2, center=(4, 4),
|
126 |
wedgeprops={"linewidth": 1, "edgecolor": "white"},
|
127 |
textprops={'fontsize': 14},
|
128 |
-
frame=False,labels =list(x.
|
129 |
labeldistance=1.2)
|
130 |
# fig.savefig('temp.png', bbox_inches='tight',dpi= 100)
|
131 |
|
|
|
125 |
ax.pie(x['count'], colors=colors, radius=2, center=(4, 4),
|
126 |
wedgeprops={"linewidth": 1, "edgecolor": "white"},
|
127 |
textprops={'fontsize': 14},
|
128 |
+
frame=False,labels =list(x.SDG_Num),
|
129 |
labeldistance=1.2)
|
130 |
# fig.savefig('temp.png', bbox_inches='tight',dpi= 100)
|
131 |
|
utils/sdg_classifier.py
CHANGED
@@ -98,7 +98,7 @@ def sdg_classification(haystackdoc:List[Document])->Tuple[DataFrame,Series]:
|
|
98 |
x["SDG"] = pd.to_numeric(x["SDG"])
|
99 |
x = x.sort_values(by=['count'])
|
100 |
x['SDG_name'] = x['SDG'].apply(lambda x: _lab_dict[x])
|
101 |
-
x['
|
102 |
df= df.drop(['Relevancy'], axis = 1)
|
103 |
df['SDG'] = pd.to_numeric(df['SDG'])
|
104 |
df = df.sort_values('SDG')
|
|
|
98 |
x["SDG"] = pd.to_numeric(x["SDG"])
|
99 |
x = x.sort_values(by=['count'])
|
100 |
x['SDG_name'] = x['SDG'].apply(lambda x: _lab_dict[x])
|
101 |
+
x['SDG_Num'] = x['SDG'].apply(lambda x: "SDG "+str(x))
|
102 |
df= df.drop(['Relevancy'], axis = 1)
|
103 |
df['SDG'] = pd.to_numeric(df['SDG'])
|
104 |
df = df.sort_values('SDG')
|