sentence

python compare column one with word vs column two with label

python compare column one with word vs column two with label Question: I have two columns from two different csv. A column contains words. The other column contains sentences. I import the columns as a list. Now I want to find all sentences in which one of the imported words occurs. Then I want to …

Total answers: 1

Replace word starting with string anywhere in sentence in each row python

Replace word starting with string anywhere in sentence in each row python Question: I am trying to replace words starting with string in text data stored in multiple rows of a dataframe. The df has 6 columns : date, user, tweet, language, coordinates, place. The replacement takes place in tweet column that has for example …

Total answers: 2