How to modify the categorical data to 0,s & 1's with pandas?

前端 未结 0 1698
太阳男子
太阳男子 2021-01-29 01:42

I would like convert city column into 0\'s and 1\'s Therefore mumbai as 1\'s and other as 0\'s without get_dummies. sample :

   EmployeeId  City     join_month
0          


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