-2

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?

  • Hi. This is not a code wiring service. Please provide the code you have written when you honestly tried to fulfill your retirement. Moreover please read [how to ask](/help/how-to-ask) and subsequent help links where you will learn that you should provide your references embedded in the question and not in links, and as text in code blocks rather than images as far as possible. Thanks – Zeitounator Jul 04 '21 at 06:19
  • @Zeitounator, i will keep your suggestion in mind next time, sorry for inconvienece. – Devansh Mistry Jul 06 '21 at 02:03

1 Answers1

0

IIUC, you need to transpose the dataframe.

df.T.plot.bar()

Output:

enter image description here

Scott Boston
  • 147,308
  • 15
  • 139
  • 187