Last active
April 28, 2019 15:31
-
-
Save saxenanihal95/772937fdad9e6da4c6d71316804728a5 to your computer and use it in GitHub Desktop.
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
# columns with missing values | |
null_columns = dataset.columns[dataset.isnull().any()] | |
# count of missing rows in each columns | |
training_set[null_columns].isnull().sum() | |
# count of non empty rows in each columns | |
training_set[null_columns].count() | |
# columns with missing values | |
dataset.select_dtypes(exclude=['int', 'float']).columns |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment