How to assign value for column2 based on the value in column 1(in python using Pandas)?

前端 未结 0 1263
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-16 21:15

For Instance--> I want to create the table as below

| Column 1 | column 2 |

| Male | 1 | | Female | 2 |

Code snippet==><

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