title: count distinct occurrences in pandas
body: <p>I have a pandas DataFrame with two columns, Name and Car, of every car that is owned in a city,</p>
  
  <pre><code>  Name    Car
  0 Alice   Toyota
  1 Bob     Nissan
  2 Charlie Toyota
  3 Dave    Ford
  4 Eve     Nissan
  5 Bob     Ford
  </code></pre>
  
  <p>and I want to make a summary table</p>
  
  <pre><code>  Name    Toyota   Nissan   Ford
  0 Alice   1        0        1
  1 Bob     0        1        0
  2 Charlie 1        0        0
  3 Dave    0        0        1
  4 Eve     0        1        0
  </code></pre>
  
  <p>I've been trying groupby, count, apply, transform, but I'm just too new to the game...</p>
  
  <p>Actually, the brands are numbered, and it would be ideal to have a way to address them as a Series, e.g., get whole rows as Series. Any help is appreciated.</p>