Skip to content

Instantly share code, notes, and snippets.

@liannewriting
Created January 21, 2020 15:42
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save liannewriting/88a21a07f9bec8f3314e2d4a4eb30bf0 to your computer and use it in GitHub Desktop.
data_cleaning_202001
# if it's a larger dataset and the visualization takes too long can do this.
# % of missing.
for col in df.columns:
pct_missing = np.mean(df[col].isnull())
print('{} - {}%'.format(col, round(pct_missing*100)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment