gp=df.groupby(['user_id','item_id']).sum().reset_index()
print(gp.head())
gp = df.groupby(['user_id', 'item_id']).agg(['sum','count']).reset_index()
print(gp.head())
gp=df.groupby(['user_id','item_id']).sum().reset_index()
print(gp.head())
gp = df.groupby(['user_id', 'item_id']).agg(['sum','count']).reset_index()
print(gp.head())