title: How to make bar plot in plotly with two categories?
body: <p>I have such data</p>
  <pre><code>import pandas as pd
  df = pd.DataFrame(
  dict(
      week=[1, 1, 2, 2, 3, 3] * 2,
      layout=[&quot;classic&quot;, &quot;classic&quot;, &quot;modern&quot;, &quot;modern&quot;] * 3,
      response=[&quot;conversion&quot;, &quot;exit&quot;] * 6,
      cnt=[26, 23, 45, 34, 55, 44, 53, 27, 28, 25, 30, 34],))
  </code></pre>
  <p>And I need to get such barplot like in excel with plotly:
  <a href="https://i.stack.imgur.com/hYnVj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hYnVj.png" alt="enter image description here" /></a></p>
  <p>The main problem that I can not use two categoies. My code:</p>
  <pre><code>px.bar(
      data_frame=df,
      x='week',
      y='cnt',
      template='plotly_dark',
      color = 'layout'
  )
  </code></pre>
  <p>and result:
  <a href="https://i.stack.imgur.com/Sy2PQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Sy2PQ.png" alt="enter image description here" /></a></p>
  <p>But i cannot display information about &quot;response&quot; like in excel example</p>