I have a data frame with 4 columns in it. say column1, column2, column3, column4. column1 is total of column3 and column4. I want to plot a bar plot with column3 and column4 stacked, but column1 & column2 as single non stacked ones. how can I do this hybrid stacked?
here is the date frame like:
Date column1 column2 column3 column4
2021-08-20 19 30 11 8
2021-08-11 15 25 11 4
2021-08-07 5 10 5 0
2021-08-19 25 36 16 9
2021-08-31 6 6 6 0
I want it to look something like this, except for 1 stacked bar(column3 & column4)
I am trying this:
ax = final_df[['Date', 'column1', 'column2']].plot(kind = 'bar', x = 'Date', stacked = False, rot = 90, figsize = (20,5))
ax = final_df[['Date', 'column3', 'column4']].plot(kind = 'bar', x = 'Date', stacked = True, rot = 90, figsize = (20,5))
but this is obviously giving me 2 plots

You can plot via matplotlib, calculating the positions for each bar.
The following example code uses a list of list to indicate which columns go together.