I want to remove the stop words from my column \"tweets\". How do I iterative over each row and each item?
pos_tweets = [(\'I love this car\', \'positive\'),
If you would like something simple but not get back a list of words:
test["tweet"].apply(lambda words: ' '.join(word.lower() for word in words.split() if word not in stop))
Where stop is defined as OP did.
from nltk.corpus import stopwords stop = stopwords.words('english')