Guest User

Untitled

a guest
Feb 18th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. id-customer status
  2. 1 Won
  3. 1 Won
  4. 2 Won
  5. 2 Won
  6. 3 Not won
  7.  
  8. id-customer status winrate
  9. 1 Won 1
  10. 1 Won 1
  11. 2 Won 1
  12. 2 Won 1
  13. 3 Not won 0
  14.  
  15. df_winrate=df.groupby(['id-customer'],as_index=False)['status'].sum()
Add Comment
Please, Sign In to add comment