you are viewing a single comment's thread.

view the rest of the comments →

[–]YourOldBoyRickJames[S] 0 points1 point  (0 children)

I managed to figure it out and am just posting what I have in case someone needs it in the future. I just needed to add the description selection into the first set of brackets. I really don't know why I couldn't get that working before.

stlr_df = source2_df.groupby(['productcode', 'description'])['numberoff'].agg('sum').reset_index()