daily pastebin goal
71%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. df.loc[df['job_title'].str.contains('teacher'), 'job_title'] = 'teacher'
  2.    
  3. dictionary = {'teacher per session':'teacher', 'teacher special ed':'teacher'}
  4. df['job_title'] = df.job_title.replace(dictionary)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top