I've been trying to plot a dataframe as stacked bar chart. However I fail to show each subset of the bar. It's only shown as one bar. Don't really know how to progress, because when I try each solution I find online it works with the dataset provided by the example but not with mine. Hence I believe that I need to change my dataframe, but I fail to see how.
Update. Forgot to poste the code and than forgot the question. So update: I run this code:
ax1 = dfny.plot(kind='bar', stacked=True)
plt.legend(title='labels', bbox_to_anchor=(1.0, 1), loc='upper left')
plt.show()
The dataframe looks as this: Dataframe image
The result looks like this: Link to result
However I was expecting all the columns number from 1416-1415-1417-1420-1426 in a stacked bar chart, like: Link to stackovflow example