Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. Code: result = df.groupby(["customer_ID","entry time"])[“Tag1", “Tag2”,"Tag3”,"Tag4”,"Tag4”,"Tag5”,"Tag6”,"Tag7”,"Tag8”].sum().reset_index()
  2.  
  3. Code : result = df.groupby(["customer_ID","entry time”,"gender", "age","location", "country", "exit time", "value 1", "value 2"
  4. ])[“Tag1",“Tag2”,"Tag3”,"Tag4”,"Tag4”,"Tag5”,"Tag6”,"Tag7”,"Tag8”].sum().reset_index()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement