Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Code: result = df.groupby(["customer_ID","entry time"])[“Tag1", “Tag2”,"Tag3”,"Tag4”,"Tag4”,"Tag5”,"Tag6”,"Tag7”,"Tag8”].sum().reset_index()
- Code : result = df.groupby(["customer_ID","entry time”,"gender", "age","location", "country", "exit time", "value 1", "value 2"
- ])[“Tag1",“Tag2”,"Tag3”,"Tag4”,"Tag4”,"Tag5”,"Tag6”,"Tag7”,"Tag8”].sum().reset_index()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement