Skip to content

Instantly share code, notes, and snippets.

@this-is-richard
Last active April 26, 2019 04:09
Show Gist options
  • Select an option

  • Save this-is-richard/00b3be688199838411f437f45822d5ba to your computer and use it in GitHub Desktop.

Select an option

Save this-is-richard/00b3be688199838411f437f45822d5ba to your computer and use it in GitHub Desktop.
def null_counts(df):
null_counts = df.isnull().sum(axis = 0) / len(df)
null_counts.plot.bar(figsize=(15, 4))
print(null_counts.sort_values(ascending=False).head(10))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment