I have a pandas DataFrame which details online activities in terms of \"clicks\" during an user session. There are as many as 50,000 unique users, and the dataframe has around 1
suppose your dataframe name is df, then do the following
df.groupby(['User_ID']).sum()[['User_ID','clicks']]