title: Python Pandas - Groupby and make column values headers
body: <p>I have a dataframe which is a list of organisations (multiple rows per organisation) which has a <code>boolean</code> value associated with it.</p>
  
  <p>So organisation A has 3 <code>true</code> rows and 3 <code>false</code> i.e.</p>
  
  <pre><code>Organisation  Value
  A             True
  A             True
  A             False
  A             False
  A             True
  A             False
  B             True
  B             True
  C             False
  C             False
  </code></pre>
  
  <p>I want to get it into the format where I have each organisation listed only once, and the <code>true</code> and <code>false</code> values under the value column as new column headers like this (and then counted):</p>
  
  <pre><code>Organisation  True   False
  A              3       3
  B              2       0
  C              0       2
  </code></pre>
  
  <p>Currently by code is like this:</p>
  
  <pre><code>sqlDf.groupby(['Organisation','Value']).size().reset_index(name='counts')
  </code></pre>
  
  <p>But that doesnt do what I need it to do.</p>
  
  <p>Any advice?</p>