参考链接:
https://www.runoob.com/matplotlib/matplotlib-pie.html
km_model.labels_
Out[8]: array([2, 2, 0, ..., 0, 2, 0])
a1 = a.value_counts()
a1
Out[11]:
2 813
0 437
1 284
3 74
dtype: int64
a1.plot(kind='pie')
Out[14]: <AxesSubplot:ylabel='None'>

plt.pie(a1,
colors=["#d5695d", "#5d8ca8", "#65a479", "#a564c9"],
)
plt.title("cluster labels")
plt.show()

plt.pie(a1,
colors=["#d5695d", "#5d8ca8", "#65a479", "#a564c9"],
autopct='%.2f%%'
)
plt.title("cluster labels")
plt.show()
