pandas pie chart plot remove the label text on the wedge

You can turn off the labels in the chart, and then define them within the call to legend:

df[col].plot(kind='pie', autopct="%.2f", labels=['','','',''],  ax=ax, title=col, fontsize=10)
ax.legend(loc=3, labels=df.index)

or

... labels=None ...

enter image description here

Leave a Comment