get total number of unique words in dataframe code example
Example: unique words from pandas
results = set()
df['text'].str.lower().str.split().apply(results.update)
results = set()
df['text'].str.lower().str.split().apply(results.update)