Quick Pandas Exercise : <p>I have a dataset like this:</p>

<pre><code>ID Type Value
01 A    $10
01 B    $12
01 C    $14
02 B    $20
02 C    $21
03 B    $11
</code></pre>

<p>I want to convert this into:</p>

<pre><code>ID TypeA TypeB TypeC
01 $10   $12   $14
02 $0    $20   $21
03 $0    $11   $0
</code></pre>

<p>The only solution that I have is bunch of if-loops but don't have a few-liner. Can anyone help me with this python (pandas) problem?</p>

<p>Thanks</p>
