2020年12月24日星期四

How to plot word frequency, from a column of lists, in a bar chart

I have dataframe

1

I am struggling to show the top 10 words in a bar chart for all tweets, real tweets and fake. Any suggestions?

Divide all texts into words, count the frequencies, select the 10 most frequent ones and plot them. I thought something like this could work but as a novice I'm unsure how to implement this.

Thank you for the help in advance :)

https://stackoverflow.com/questions/65443723/how-to-plot-word-frequency-from-a-column-of-lists-in-a-bar-chart December 25, 2020 at 06:31AM

没有评论:

发表评论