import matplotlib.pyplot as plt df.plot(kind='pie', y = 'count', figsize = (20, 8)) plt.legend(bbox_to_anchor=(0.75,0.75), loc="center right", fontsize=10, ---- bbox_transform=plt.gcf().transFigure) plt.show()