df = { 'id' : pd.Series([1,1,1,1,2,2,2,2,3,3,4,4,4])}
num_id = df['id'].value_counts().hist(bins=2)
I an get a nice histogram with the count of number of ids that fall into each bin.
Question is, how do i add annotations to each bar to show the count? It could be in the middle with white text.
I know there is an ax parameter that we can specify in hist() but i am not sure how.


ax.textis what you need. You can tie the x and y coordinates to the bin edgeshistreturns...