title: How to add % information on a treemap?
body: <p>I am plotting a treemap and was wondering how to also plot the relative percentage of a tree class, i.e.</p>
  <p>Group A =100<br>
  Groun B =30<br>
  Groun C =50<br>
  Groun D =20<br></p>
  <p>Then, in the plot, it should add:<br>
  '50%' for Group A<br>
  '15%' for Group B<br>
  etc. next to its 'Group X' label. How would I do that given this code?</p>
  <pre><code>!pip install squarify
  import squarify 
  df = pd.DataFrame({'customers':[8,3,4,2], 'cluster':[&quot;group A&quot;, &quot;group B&quot;, &quot;group C&quot;, &quot;group D&quot;] })
  squarify.plot(sizes=df['customers'], label=df['cluster'], alpha=.8 )
  plt.axis('off')
  plt.show();
  </code></pre>
  <p><a href="https://i.stack.imgur.com/AUKL6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AUKL6.png" alt="enter image description here" /></a></p>