It sounds simple but I cant get a stacked bar chart. I got a series after grouping by a column in a dataframe.
s1 = df_sort.groupby('loan_status')['count_loans'].sum()
s1
loan_status
Fully paid 8045
Not fully paid 1533
Name: count_loans, dtype: int64
I have tried
s1.T.plot.bar(stacked=True)
s1.plot(kind="bar", stacked=True)
which produces two individual bars?
thanks.