traindf['title'] = traindf['title'].apply(lambda x: ' '.join([word for word in x.lower().split() if word not in stopwords.words('english') and string.punctuation]))