checking if a value in a data frame column exists in a list, and creating a new column acording to the checking result

前端 未结 0 1047
半阙折子戏
半阙折子戏 2020-12-29 23:11

an example how i tried to solve it

df = pd.DataFrame({\'vals\': [1, 2, 3, 4, 5], \'ids\': [\'a\', \'b\', \'f\', \'n\',\'k\'], \'ids2\':[\'a\'         


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