Skip to content

Instantly share code, notes, and snippets.

@liannewriting
Created January 21, 2020 15:45
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/07af65d70bd75408d5c9d029f5701019 to your computer and use it in GitHub Desktop.
Save liannewriting/07af65d70bd75408d5c9d029f5701019 to your computer and use it in GitHub Desktop.
data_cleaning_202001
# create an ismissing indicator variable for life_sq.
df['life_sq_ismissing'] = df['life_sq'].isnull()
df['life_sq_ismissing'].value_counts(dropna=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment