Created
April 12, 2020 17:25
-
-
Save SubhadityaMukherjee/228f7d95eb25ca64f1e9f4ff47611d2c to your computer and use it in GitHub Desktop.
remove
This file contains hidden or 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
to_remove = [] | |
for a in df.columns: | |
if df[a].isna().sum() > 4000: | |
to_remove.append(a) | |
df = df.drop(to_remove, axis=1) | |
df.shape |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment