Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. cuisine violations
  2. 0 Afghan 19
  3. 1 African 99
  4. 2 American 10799
  5. 3 American 37
  6. 4 Asian 518
  7.  
  8. Manhattan_groupby['cuisine'] = Manhattan_groupby['violations'].apply(lambda x: 'other' if (x <= 1000) else None)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement