import pandas as pd
I have the following data frame :
    Col1  Col2
0     a     0
1     b     1
2     a     1
2     b     1
3     a     0
3     c     1
I want to reformate it into :
    newCol_a  newCol_b   newCol_c
0      0         0          0
1      0         1          0
2      1         1          0
3      0         0          1
Basically kind of transposing the two old columns and make Col1 values a list of columns in the new dataframe, with respect to the index value (not unique), the value should default to 0 if the letter is not found (e.g : b and c for index 0).
I am pretty stuck on how to do this
 
    