0

I have a stacked bar, that look like this: pyplot stacked bar

My code is:

single_capacity_g = single_capacity_g.pivot('Date', 'Customer', 'Size_GB')
single_capacity_g.plot.bar(stacked=True, rot=1, figsize=(15, 10),ax=ax,zorder=0)

Because of the pivot, the DF itself looks like this:

DF

I tried so many examples already, but I am not quite sure how to access the values and to put them on the bar sections, because of the not-flat DF structure. The customer columns are dynamic, so can't call them by their names.

Thank you!

Yavor I
  • 67
  • 5

0 Answers0