I have a dataset like this:
ID Type Value
01 A    $10
01 B    $12
01 C    $14
02 B    $20
02 C    $21
03 B    $11
I want to convert this into:
ID TypeA TypeB TypeC
01 $10   $12   $14
02 $0    $20   $21
03 $0    $11   $0
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?
Thanks
 
     
    