I am trying to plot a histogram in python based on two columns ie State and Production. My dataframe looks like below:
State Year Area production
AB 2014 20000 21674
BS 2014 35000 116074
TS 2014 20000 32678
My requirement is to have States on x-axis and their production level at y-axis
Below is the code i have written:
%matplotlib inline
fig=plot.figure(figsize=(8,10))
ax=fig.gca()
Pulse_yield['State'].hist(x, bin =30)
ax.set_title('Yield in 2014')
ax.set_xlabel('States')
ax.set_ylabel('Production')
plot.xticks(rotation=90)
Issue is: on x-axis, individual values are populating for each State but on y-axis , it is showing as 0,10,20,30, 40 etc and not the value I have in Production column.

barplot. I marked this question as duplicate.