Beginner question. This seems like it should be a straightforward operation, but I can\'t figure it out from reading the docs.
I have a df with this structure:
You can do it
data.groupby(by=['account_ID'])['purchases'].sum()