how convert my chart from current from to another in python data science?

138 Views Asked by At

This is my dataframe: data set

I have generated this type of plot: bar chart

I have wanted this type of plot: this is generated in excel what will be code snippet for it?

1

There are 1 best solutions below

0
Scott Boston On

IIUC, you need to transpose the dataframe.

df.T.plot.bar()

Output:

enter image description here