title: python plotly bar chart grouped and stacked in Jupyter-nb
body: <p>I want to paint a bar chart where I can see 2 different levels in the same group, for example:</p>
  
  <pre><code>|pd.dataframe|category| col1    | col2   |
  |  1         | row 1  |   3     |  7     |
  |  1         | row 2  |   2     |  5     |
  |  2         | row 1  |   2     |  ...   |
  </code></pre>
  
  <p>I would like to plot in the same image two columns together for each different index. In one column, I pretend to plot values of row_1 and row_2 in a related/stacked mode</p>
  
  <pre><code>bar1 = [3+7,2+5]
  </code></pre>
  
  <p>and plot in the second bar info of columns</p>
  
  <pre><code>bar2 = [3+2, 7+5]
  </code></pre>
  
  <p>plotting both in a grouped form</p>
  
  <p>Here you can see an example. I found cases in plotly.js, but I can't find nothing about Python case.</p>
  
  <p>Here you can see an example <a href="https://i.stack.imgur.com/pI2zS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pI2zS.png" alt="An example found in GitHub, but for plotly.js"></a></p>