Created
January 21, 2020 15:42
-
-
Save liannewriting/88a21a07f9bec8f3314e2d4a4eb30bf0 to your computer and use it in GitHub Desktop.
data_cleaning_202001
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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