title: Plot bar chart with plotly from group_by() of Pandas
body: <p>I have some data and I want to plot it as a bar chart using <code>Plotly</code>. My problem is if I previously use <code>group_by()</code> from <code>Pandas</code> because it says it can't find the column that I had use to group the data.</p>
  <p>Using <code>Pandas</code> and <code>Matplotlib</code> I obtain my goal.</p>
  <pre><code>import pandas as pd
  
  df = pd.read_csv('myTrades.csv')
  balance = balance.drop(['Price','Fee','Ex Id','Id','Amount'], 1)
  balance.loc[balance['Type'] == 'BUY', 'Total'] = -balance['Total']
  balance = balance.groupby(['Market']).sum().sort_values('Total',ascending=False)
  
  balance.plot(kind='bar', title='BALANCE CRIPTOMONEDAS', ylabel='USDT', xlabel='SÍMBOLO', figsize=(6, 5))
  </code></pre>
  <p><a href="https://i.stack.imgur.com/FlzZI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FlzZI.png" alt="enter image description here" /></a></p>
  <p>But with <code>Plotly</code> appears an error that says,</p>
  <blockquote>
  <p>ValueError: Value of 'x' is not the name of a column in 'data_frame'. Expected one of ['Price', 'Amount', 'Total', 'Fee', 'Ex Id', 'Id'] but received: Market.</p>
  </blockquote>
  <p>This is my code,</p>
  <pre><code>import plotly.express as px
  
  balance.loc[balance['Type'] == 'BUY', 'Total'] = -balance['Total']
  balance = balance.groupby(['Market']).sum().sort_values('Total',ascending=False)
  
  fig = px.bar(balance, x='Market', y='Total')
  fig.show()
  </code></pre>