text_html_output_1.png text_plain_output_1.png
import matplotlib.pyplot as plt

sizes = [29941, 3967]
labels = ('NO', 'YES')
explode = (0, 0.1)
fig1, ax1 = plt.subplots()
ax1.pie(sizes, explode=explode, autopct='%1.1f%%', shadow=True, startangle=75)
ax1.axis('equal')
ax1.set_title('Client Churn Distribution')
ax1.legend(labels)
plt.show()