I was trying to plot stacked bar plot is similar manner shown in course. Plot total and maharashtra as stacked plot. Below is the code and it is throwing an error. could you please help.
If you look at the y-values in plot, they are not in order. Most likely their type is not number. You can confirm the type by printing
If not numeric, you can convert ‘subData’ to numeric and then plot again.
subData = subData.apply(pd.to_numeric)
It worked. Thanks for the reply.