find top unique words in a dataframe column pandas code example
Example 1: 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'])
Example 2: unique words from pandas
results = set()
df['text'].str.lower().str.split().apply(results.update)