title: How to Show the actual value instead of the percent in a Matplotlib Pie Chart
body: <p>The following code is for creating a pie chart that shows the number of purchases made by each person from the &quot;Shipping Address Name&quot; column. The 'labels' list contains the name of each person and the 'purchases' list contain the number of purchases each person has made.</p>
  <pre><code>labels = df['Shipping Address Name'].unique()
  
  purchases = df['Shipping Address Name'].value_counts()
  
  plt.pie(purchases, labels=labels, autopct='%.f')
  plt.title('Purchases Per Person')
  plt.axis('equal')
  return plt.show()
  </code></pre>
  <p>This is what the 'purchases' list basically looks like:</p>
  <pre><code>Lilly   269
  
  Rolf    69
  
  Sandy   11
  
  Dan     2
  </code></pre>
  <p>I am trying to have the values in the purchase list to be shown in the pie chart instead of the percentages from &quot;autopct=%.f&quot;. Not sure what the easiest way for the 'autopct' function to do this is, so any help is appreciated.</p>