I am using the following code to plot a bar chart:
df.groupby(['Borrow_Rank'])['Outcome'].mean().plot(kind = 'bar')
This is showing the mean of the Outcome variable that ranges from 0-1. However, I need the bar chart to also show how many instances or rows are in each group (2000-5000 in each group).

