title: How can I group a stacked bar chart?
body: <p>I'm trying to create a grouped, stacked bar chart. </p>
  
  <p>Currently I have the following DataFrame:</p>
  
  <pre><code>&gt;&gt;&gt; df
                                         Value                     
  Rating                                 1          2         3
  Context Parameter                                
  Total   1                          43.312347   9.507902  1.580367
          2                          42.862649   9.482205  1.310549
          3                          43.710651   9.430811  1.400488
          4                          43.209559   9.803418  1.349094
          5                          42.541436  10.008994  1.220609
          6                          42.978286   9.430811  1.336246
          7                          42.734164  10.317358  1.606064
  User    1                          47.652348  11.138861  2.297702
          2                          47.102897  10.589411  1.848152
          3                          46.853147  10.139860  1.848152
          4                          47.252747  11.138861  1.748252
          5                          45.954046  10.239760  1.448551
          6                          46.353646  10.439560  1.498501
          7                          47.102897  11.338661  1.998002
  </code></pre>
  
  <p>I'd like to have for each <em>Parameter</em> the bars for <em>Total</em> and <em>User</em> grouped together.</p>
  
  <p>This is the resulting chart with <code>df.plot(kind='bar', stacked=True)</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/vvGV6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vvGV6.png" alt="Stacked bar chart without grouping"></a></p>
  
  <p>The bars themselve look right, but how do I get the bars for <em>Total</em> and <em>User</em> next to each other, for each <em>Parameter</em>, best with some margin between the parameters? </p>