title: Python - Attempting to create binary features from a column with lists of strings
body: <p>It was hard for me to come up with clear title but an example should make things more clear. </p>
  
  <pre><code>Index C1
  1     [dinner]
  2     [brunch, food]
  3     [dinner, fancy]
  </code></pre>
  
  <p>Now, I'd like to create a set of binary features for each of the unique values in this column. </p>
  
  <p>The example above would turn into:</p>
  
  <pre><code>Index C1               dinner  brunch  fancy food
  1     [dinner]         1       0       0     0
  2     [brunch, food]   0       1       0     1
  3     [dinner, fancy]  1       0       1     0
  </code></pre>
  
  <p>Any help would be much appreciated. </p>