title: Annotate bars with values on Pandas bar plots
body: <p>I was looking for a way to annotate my bars in a Pandas bar plot with the rounded numerical values from my DataFrame.</p>
  
  <pre><code>&gt;&gt;&gt; df=pd.DataFrame({'A':np.random.rand(2),'B':np.random.rand(2)},index=['value1','value2'] )         
  &gt;&gt;&gt; df
                   A         B
    value1  0.440922  0.911800
    value2  0.588242  0.797366
  </code></pre>
  
  <p>I would like to get something like this:</p>
  
  <p><img src="https://i.stack.imgur.com/aJ7dS.png" alt="bar plot annotation example"></p>
  
  <p>I tried with this code sample, but the annotations are all centered on the x ticks:</p>
  
  <pre><code>&gt;&gt;&gt; ax = df.plot(kind='bar') 
  &gt;&gt;&gt; for idx, label in enumerate(list(df.index)): 
          for acc in df.columns:
              value = np.round(df.ix[idx][acc],decimals=2)
              ax.annotate(value,
                          (idx, value),
                           xytext=(0, 15), 
                           textcoords='offset points')
  </code></pre>