Spaces:
GIZ
/
Running on CPU Upgrade

prashant commited on
Commit
96f9667
1 Parent(s): 2cc8568

pie chart fix

Browse files
Files changed (1) hide show
  1. appStore/sdg_analysis.py +3 -4
appStore/sdg_analysis.py CHANGED
@@ -131,7 +131,6 @@ def app():
131
  wedgeprops={"linewidth": 1, "edgecolor": "white"},
132
  frame=False,labels =list(x.SDG),
133
  labeldistance=1.2)
134
- fig.tight_layout()
135
  # fig.savefig('temp.png', bbox_inches='tight',dpi= 100)
136
 
137
 
@@ -142,9 +141,9 @@ def app():
142
  with c5:
143
  st.pyplot(fig)
144
  with c6:
145
- labeldf = x['SDG_name']
146
- # labeldf = labeldf.set_index('SDG_NAME')
147
- st.write(labeldf.to_string(index=False))
148
 
149
  st.markdown("###### What keywords are present under SDG classified text? ######")
150
 
 
131
  wedgeprops={"linewidth": 1, "edgecolor": "white"},
132
  frame=False,labels =list(x.SDG),
133
  labeldistance=1.2)
 
134
  # fig.savefig('temp.png', bbox_inches='tight',dpi= 100)
135
 
136
 
 
141
  with c5:
142
  st.pyplot(fig)
143
  with c6:
144
+ labeldf = x['SDG_name'].values.to_list()
145
+ labeldf = " \n".join(labeldf)
146
+ st.write(labeldf)
147
 
148
  st.markdown("###### What keywords are present under SDG classified text? ######")
149