Skip to content
Advertisement

Making a clustered bar chart

I have a little pandas dataframe that looks like this:

JavaScript

Words (50) and the two columns with figures corresponding to every one of them signifying the incidence of the word. How do I make a clustered chart to show the comparison of the two figures for each word? I have tried virtually every piece of code that was offered to other people on this site, I just don’t understand how to group the two “Percentage” columns.

Advertisement

Answer

If I understand you correctly, you can do in this way:

JavaScript

enter image description here

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement