This is how my plot actually is: current output
This is the Data Frame: DataFrame
This is my current code:
import pandas as pd
import plotly.express as px
pd.set_option('display.max_rows', None)
pd.set_option('display.max_columns', None)
pd.set_option('display.width', None)
df = pd.read_csv('sales.csv')
df.columns = df.columns.str.replace(' ', '')
fig= px.bar(df, x='number', y='number', color='profit')
fig.show()
As you can see, the sales numbers are many times the same, so i want to plot a histogram being each x value the total profit of all sales with the same key number, so i can compare the profit of each sales key number.
How can i do that using Pandas and plotly express?
ps: I'm a real noobie with all this
