title: Create dummies from column with multiple values in pandas
body: <p>I am looking for for a pythonic way to handle the following problem.</p>
  
  <p>The <code>pandas.get_dummies()</code> method is great to create dummies from a categorical column of a dataframe. For example, if the column has values in <code>['A', 'B']</code>, <code>get_dummies()</code> creates 2 dummy variables and assigns 0 or 1 accordingly.</p>
  
  <p>Now, I need to handle this situation. A single column, let's call it 'label', has values like <code>['A', 'B', 'C', 'D', 'A*C', 'C*D']</code> . <code>get_dummies()</code> creates 6 dummies, but I only want 4 of them, so that a row could have multiple 1s. </p>
  
  <p>Is there a way to handle this in a pythonic way? I could only think of some step-by-step algorithm to get it, but that would not include get_dummies(). 
  Thanks</p>
  
  <p>Edited, hope it is more clear!</p>