작성
·
1.2K
답변 3
0
0
0
아래와 같이 변형하셔서 적용하시면 될 듯 싶습니다..
count_words_f = lambda x: len(str(x).split())
train['num_words'] = list(map(count_words_f, clean_train_reviews))
count_uniq_words_f = lambda x: len(set(str(x).split()))
train['num_uniq_words'] = list(map(count_uniq_words_f, clean_train_reviews))