Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- df.loc[df['job_title'].str.contains('teacher'), 'job_title'] = 'teacher'
- dictionary = {'teacher per session':'teacher', 'teacher special ed':'teacher'}
- df['job_title'] = df.job_title.replace(dictionary)
Add Comment
Please, Sign In to add comment