Count most frequent 100 words from sentences in Dataframe Pandas

from collections import Counter
Counter(" ".join(df["text"]).split()).most_common(100)

I’m pretty sure this would give you what you want. (You might have to remove some non-words from the counter result before calling most_common.)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)