Remove word in a list from two columns if the word is in both columns in Python

前端 未结 0 1419
抹茶落季
抹茶落季 2021-02-04 17:52
data = {\'A\': [\'word1 other stuff\', \'otherstuff word1\', \'hello word3 bye\'],
        \'B\': [\'foo word1\', \'word2 hello\', \'word2 bye\']
}

df = pd.DataFrame (d         


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