📅  最后修改于: 2022-03-11 14:47:24.684000             🧑  作者: Mango
from nltk.corpus import stopwords
stop_words = set(stopwords.words('english'))
df['n'] = df['text'].str.split().apply(lambda x: len(set(x) & stop_words))