I hope someone can help me with an error I am getting. I have a dataframe that is grouped together like this:
colour_group_revenue = type_colour.groupby(['Type','ColorID'])
colour_group_revenue.sum().sort_values(by='Total revenue', ascending = False)
This is the output:
I am then trying to create a grouped bar plot like this:
colour_group_revenue.pivot(index='Type', columns='ColorID', values='Quantity').plot(kind='bar')
However, I receive this error:
I just want to ask if there something I am missing here? Or is there a better way to create a grouped bar chart (if this is even possible with my output).
Thank you for any assistance.