Skip to content

Instantly share code, notes, and snippets.

@arunm8489
Created July 31, 2020 13:26
Show Gist options
  • Save arunm8489/f00ebe60583d29baad4c825ccd14aef2 to your computer and use it in GitHub Desktop.
Save arunm8489/f00ebe60583d29baad4c825ccd14aef2 to your computer and use it in GitHub Desktop.
data["teacher_prefix"] = data["teacher_prefix"].fillna('Mrs.')
data["teacher_prefix"] = data["teacher_prefix"].str.replace('.','')
data["teacher_prefix"] = data["teacher_prefix"].str.lower()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment