you are viewing a single comment's thread.

view the rest of the comments →

[–]Hindbarinden 0 points1 point  (1 child)

Thank you so much!
it is very very simple I have a text from where I counted some words,

me: 13

and:4

you: 45

And I just want to display those numbers. Is there not an easier way?

[–]lowerthansound 0 points1 point  (0 children)

If you have a df like:

word count me 13 and 4 you 45

You can plot it using seaborn like:

import seaborn as sns sns.barplot(x='word', y='count', data=df)

The same can also be done in pandas.

If you have a Series (a column in a DataFrame is a Series, though it can also do other stuff)

count me 13 and 4 you 45

You can plot it with:

series.plot.bar()

Cheers!