I have this data frame
d f
"first tweet" A
"second tweet" B
"thrid tweet" C
And I would like to get this
d A B C
"first tweet" 1 0 0
"second tweet" 0 1 0
"thrid tweet" 0 0 1
Thanks!