title: Showing the mean line in a density plot in pandas
body: <p>I create a graph using the .plot() method</p>
  
  <pre><code>df['age'].plot(kind='density')
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/PodcH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PodcH.png" alt="enter image description here"></a></p>
  
  <p>I dont create the graph using the "plt" object: is there any way to show a dotted line as the mean using an argument of .plot().</p>
  
  <p>It's always very unclear to me how to handle the attribute and the difference between plt like:</p>
  
  <pre><code>x = df['age'].values
  result = plt.hist(x, bins=15, color='c')
  plt.axvline(x.mean(), color='b', linestyle='dashed', linewidth=2)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ZrW7g.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZrW7g.png" alt="enter image description here"></a></p>
  
  <p>Moreover, how can I annotate the value of the mean close to the dotted line?</p>