I have a dataframe that looks like this:
Category counts Decade
0 1.0 55 80s
1 2.0 27 80s
2 3.0 13 80s
3 4.0 7 80s
4 5.0 4 80s
0 1.0 55 90s
1 2.0 31 90s
2 3.0 8 90s
3 5.0 7 90s
4 4.0 3 90s
0 1.0 84 00s
1 2.0 35 00s
2 3.0 10 00s
3 4.0 6 00s
4 5.0 1 00s
0 1.0 137 10s
1 2.0 32 10s
2 3.0 13 10s
3 4.0 12 10s
4 5.0 1 10s
I then plot it as a stacked bar chart:
df.pivot_table('counts', 'Decade', 'Category', 'first').plot.bar(stacked=True)
However, this organizes my bars not in chronological order. I realize they are strings, but I figured it would plot the bars from top to bottom in the order of the dataframe. How can I force the plot to start at 80s and increase by decade to the right?

