title: How to make a sunburst plot from a list of strings in Python?
body: <p>I have a list of strings:</p>
  
  <pre><code>How many glasses are on the tab ?
  What does the sign say ?
  Has the pizza been baked ?
  Do you think the boy on the ground has broken legs ?
  Is this man crying ?
  How many pickles are on the plate ?
  What is the shape of the plate?
  …
  </code></pre>
  
  <p>How can I convert it into a sunburst plot in Python?</p>
  
  <p>The sunburst plot shows the distribution of questions by their first four words, the arc length is proportional to the number of questions containing the word and the white areas are words with contributions too small to show.</p>
  
  <p><a href="https://i.stack.imgur.com/PBKI5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PBKI5.png" alt="enter image description here"></a></p>
  
  <p>(<a href="https://arxiv.org/pdf/1505.00468v7.pdf" rel="nofollow noreferrer">Image source</a> -> page 5, figure 3)</p>
  
  <p>The question  <a href="https://stackoverflow.com/q/12926779/395857">How to make a sunburst plot in R or Python?</a> doesn't make any assumption regarding the input format and the Python answers assume that the input has a very different format.</p>