title: How do I plot a Histogram using Matplotlib for two variables
body: <p>I am trying to plot a histogram in python based on two columns ie State and Production. My dataframe looks like below:</p>
  
  <pre><code>State Year Area production
  AB    2014 20000 21674
  BS    2014 35000 116074
  TS    2014 20000 32678
  </code></pre>
  
  <p>My requirement is to have States on x-axis and their production level at y-axis</p>
  
  <p>Below is the code i have written:</p>
  
  <pre><code>%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)
  </code></pre>
  
  <p>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.</p>
  
  <p><a href="https://i.stack.imgur.com/8NlId.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8NlId.jpg" alt="Histogram"></a></p>