So i have a dataset about customers in a store and the sales of that store on each day.
Which looks something like this -
Store ID Sales Customers
1 250 500
2 276 786
3 124 256
5 164 925
How do i convert it to grouped data, something like this
Sales Customers
0-100 0
100-200 1181
200-300 1286
I have searched for a while and found this from the pandas site - http://pandas.pydata.org/pandas-docs/version/0.15.2/groupby.html
df2.groupby(['X'], sort=True).sum()
But i am unable to understand how to apply the same to my example.