Lets say I have the following Pandas dataframe:
>> df
Period Income Expenses Commissions
0 12034.23 1665.25 601.59
1 23432.77 2451.33 1521.4
2 62513.12 4210.35 3102.24
I'd like to make a stacked bar plot of Expenses
and Commissions
, and then have the Income
column be an adjacent bar next to this stacked column.
I'm familiar with the df.plot.bar()
method, but I'm not sure how to shift the x-axis values to have the Income
bar adjacent to the stacked Expenses
and Commissions
bars