I've seen this before and simply can't remember the function.
Say I have a column "Speed" and each row has 1 of these values:
'Slow', 'Normal', 'Fast'
How do I create a new dataframe with all my rows except the column "Speed" which is now 3 columns: "Slow" "Normal" and "Fast" which has all of my rows labeled with a 1 in whichever column the old "Speed" column was. So if I had:
print df['Speed'].ix[0]
> 'Normal'
I would not expect this:
print df['Normal'].ix[0]
>1
print df['Slow'].ix[0]
>0