I have a Dataframe as given below
df = pd.DataFrame(
{
'Dates': ['2021-04-11', '2021-06-08', '2021-06-08', '2021-06-09', '2021-06-10', '2021-07-18', '2021-07-18'],
'Results': ['Negative', 'Invalid', 'Negative','Negative','Negative', 'Negative', 'Positive' ],
'Size': [1, 1, 1, 1, 4, 21, 2]
})
I want to plot a subdivided bar graph as shown below in the given picture. [![enter image description here][1]][1]
I have been stuck on this for a while now. Tried using groupby(), sum(), size() etc, but could not figure it.
Any help is greatly appreciated.
Thanks. [1]: https://i.stack.imgur.com/HrKRY.jpg