replacing a column value in a dataframe using map and replace, the difference, using pandas

前端 未结 0 1736
野趣味
野趣味 2021-02-20 14:40

I can replace a couple of values in column, \'qualify\', with true or false as follows and works just fine:

df[\'qualify\'] = df[\'qualify\'].map({\'yes\':True, \         


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