How to use python to draw pivot chart similar to excel pivot plot?

134 views Asked by At

I want to create a pivot chart plot using python and below is the data format(csv file)

enter image description here

below is the pivot chart plot using excel:

enter image description here

The code I used to generate pivot chart:

expect to see the same result as excel plotenter image description here

As you can see from the figure created from python is not what I expected. Any solutions for this problem?

Thank you very much!

0

There are 0 answers