title: Create a table using data content as columns in python
body: <p>I currently have raw data like this:</p>
  
  <pre><code>person1  person2   person3...
    blue     red      green
    red      blue     yellow
    black    black
    white    green
    orange
  </code></pre>
  
  <p>with lots of different values and columns.</p>
  
  <p>What I need is:</p>
  
  <pre><code>         Blue  Red  Black  Green Yellow Orange White
  Person1   Y     Y     Y                    Y     Y
  Person2   Y     Y     Y      Y
  Person3                      Y      Y
  </code></pre>
  
  <p>Any suggestions please?</p>
  
  <p>Thanks</p>