Making a clustered bar chart, Pandas

后端 未结 3 1575
悲哀的现实
悲哀的现实 2021-01-22 11:35

I have a little pandas dataframe that looks like this:

    Word   Percentage1  Percentage2
1   drink   18.166654   29.014272
2   cherry  13.498262   12.802642
3          


        
3条回答
  •  囚心锁ツ
    2021-01-22 12:27

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

    df.plot(x="Word", y=["Percentage1", "Percentage2"], kind="bar")
    

提交回复
热议问题