pandas/matplotlib add labels above bar charts w/multiple column groups

Viewed 47

I am brand new to Pandas and matplotlib, and I want to add labels to show the numbers associated with each column in the bar chart. I found solutions when there is a single bar char associated with x axis label, but I have multiple.

Here is my code:

df.set_index("HbA1c",drop=True,inplace=True)
df.plot.bar()
plt.yscale("log")
plt.show()

My bar chart

df is a data frame that looks like this:

data frame

0 Answers
Related