Python: Create two dummy columns from one column

前端 未结 0 1033
别那么骄傲
别那么骄傲 2021-02-20 10:45

I have a one column Pandas dataframe:

\'asdf\'

0
1
1
1
0
...
1

How do I turn it into:

1    0
0    1
0    1
0    1
1    0
<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题