convert values in a python list based on value

后端 未结 0 1323
广开言路
广开言路 2021-01-20 21:28

I have a python list of lists. The last \'column\' of the list contains a target variable, with the values 2 or 4. I want to convert these values into 0 (if 2) or 1 (if 4)

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