import pandas as pd import matplotlib.pyplot as plt students=pd.read_excel('c:/Temp/Students.xlsx',index_col='From') print(students) students['2017'].plot.pie(fontsize=8,counterclock=False,startangle=-270) #数字不可以students.2017 #Fromm 列可以 students.From #counterclock是否逆时针 ,startangle起始∠ plt.title ('Sourec of internation students1', fontsize=16,fontweight='bold') #fontweight字体粗细 plt.ylabel('2017',fontsize=12,fontweight='bold') plt.show()