I want the headers on the top to be on the x-axis and the number of occurrences to be on the y-axis. I tried using this: df.plot(kind='bar') but the output wasn't formatted how I want it.
Asked
Active
Viewed 27 times
0
-
1Maybe transposing the dataframe? `df.T.plot(kind='bar')`? – JohanC Dec 05 '21 at 21:43
-
That worked! Thank you! – siri k Dec 05 '21 at 21:44