Skip to content

Instantly share code, notes, and snippets.

@liannewriting
Last active January 23, 2020 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liannewriting/f41b70167cc68a8769a47664f83b01d7 to your computer and use it in GitHub Desktop.
Save liannewriting/f41b70167cc68a8769a47664f83b01d7 to your computer and use it in GitHub Desktop.
data_cleaning_202001
# categorical
df['sub_area'] = df['sub_area'].fillna('_MISSING_')
# numeric
df['life_sq'] = df['life_sq'].fillna(-999)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment