Created
October 11, 2020 15:32
-
-
Save StephenFordham/c6e14046e4d676663e9724c6cc7e3e01 to your computer and use it in GitHub Desktop.
missing_cols_vals
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
dataframe.columns | |
dataframe = pd.read_csv('framingham.csv') | |
for i in range(len(dataframe.columns)): | |
missing_data = dataframe[dataframe.columns[i]].isna().sum() | |
perc = missing_data / len(dataframe) * 100 | |
print('>%d, missing entries: %d, percentage %.2f' % (i, missing_data, perc)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment