Guest User

Untitled

a guest
Jun 18th, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. df['Country'] = ['USA' if x == 'USA' else 'Others' for x in df['Country']]
  2.  
  3. df['College'] = ['Kentucky' if x == 'Kentucky' elif 'Duke' if x == 'Duke' else 'Others' for x in df['College']]
Add Comment
Please, Sign In to add comment