i have a data of;
profile_bucket | price
a 10
b 15
c 5
a 7
c 20
doing hist chart with this kind of data, but hist gives me a count of the values, but I need the sum of the price instead of the count. any ideas? Using py.
df = df.groupby('profile_bucket').sum()
and after that plot withdf['price']