Skip to content

Instantly share code, notes, and snippets.

@SubhadityaMukherjee
Created April 12, 2020 17:25
Show Gist options
  • Save SubhadityaMukherjee/228f7d95eb25ca64f1e9f4ff47611d2c to your computer and use it in GitHub Desktop.
Save SubhadityaMukherjee/228f7d95eb25ca64f1e9f4ff47611d2c to your computer and use it in GitHub Desktop.
remove
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