Answers for "get unique words from pandas dataframe"

0

get unique words from pandas dataframe

results = set()
df['text'].str.lower().str.split().apply(results.update)

$ set(['someone', 'ft.jgt', 'my', 'is', 'to', 'going', 'place', 'nickname'])
Posted by: Guest on November-25-2020

Code answers related to "get unique words from pandas dataframe"

Python Answers by Framework

Browse Popular Code Answers by Language