title: show the value on the each color of stacked bar chart from a different column of the data frame
body: <p>This is my data frame:</p>
  
  <pre><code>          6month  final-formula     Question Text  numPatients6month
  286231       1       0.031730        CI_FINANCE                977
  286270       1       0.147390            CI_MJO                977
  286276       1       0.106448  CI_CONCENTRATING                977
  286700       2       0.010323            CI_MJO                775
  286323       2       0.018065        CI_FINANCE                775
  286401       2       0.034839  CI_CONCENTRATING                775
  286228       3       0.032020  CI_CONCENTRATING                812
  286238       3       0.061576            CI_MJO                812
  286292       3       0.008621        CI_FINANCE                812
  286690       4       0.008097            CI_MJO                741
  286342       4       0.005398        CI_FINANCE                741
  286430       4       0.060729  CI_CONCENTRATING                741
  286481       5       0.009840        CI_FINANCE                813
  287441       5       0.008610            CI_MJO                813
  286362       5       0.041820  CI_CONCENTRATING                813
  286360       6       0.021622  CI_CONCENTRATING                740
  286492       6       0.017568        CI_FINANCE                740
  286494       6       0.014865            CI_MJO                740
  286482       7       0.015464        CI_FINANCE                776
  286483       7       0.042526            CI_MJO                776
  286599       7       0.011598  CI_CONCENTRATING                776
  286361       8       0.024490  CI_CONCENTRATING                735
  286989       8       0.004082        CI_FINANCE                735
  286402       8       0.021769            CI_MJO                735
  287119       9       0.003916        CI_FINANCE                766
  286408       9       0.011749            CI_MJO                766
  286399       9       0.019582  CI_CONCENTRATING                766
  286267      10       0.019337  CI_CONCENTRATING                724
  286249      10       0.037293            CI_MJO                724
  286810      10       0.008287        CI_FINANCE                724
  </code></pre>
  
  <p>I have plotted this data frame as stacked bar chart.
  this stacked bar chart is based on <code>(6month,final-formula)</code>.</p>
  
  <p>As you see there is <code>numPatients6month</code> in the data frame.
  I would like to show this number on each category of stacked bar.
  for example:</p>
  
  <p>this is my barchart:
  <a href="https://i.stack.imgur.com/nUOpr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nUOpr.png" alt="enter image description here"></a></p>
  
  <p>so according to stacked bar above, I want to show <code>977</code> in the first bar the blue color, show 977 for the <code>CI_Finance</code> which is <code>orange color</code>.</p>
  
  <p><strong>It is different from</strong> <a href="https://community.tableau.com/thread/212880" rel="nofollow noreferrer">this</a> question, as it isnt stacked bar,
  Also <strong>different from</strong> <a href="https://community.tableau.com/thread/212880" rel="nofollow noreferrer">this</a>, as I am going to show another column<code>(numPatients6month)</code> which is in my data frame, not the column in <code>y-axis</code>.
  y-axis is <code>final-formula</code>, but I would like to show <code>numPatients6month</code> on each color of each stacked bar.</p>
  
  <p>Just as information, I have plotted the above using this code:</p>
  
  <pre><code>df = dffinal.drop('numPatients6month', 1).groupby(['6month','Question Text']).sum().unstack('Question Text')
  
  df.columns = df.columns.droplevel()
  ax=df.plot(kind='bar', stacked=True)
  import matplotlib.pyplot as plt
  
  plt.xticks(range(0,10), ['6month','1 year','1.5 year','2 year','2.5 year','3 year','3.5 year','4 year','4.5 year','5 year'], fontsize=8, rotation=45)
  
  plt.title('Cognitive Impairement-Stack bar')
  plt.show()
  </code></pre>
  
  <p>Thanks, :)</p>