Skip to content

Instantly share code, notes, and snippets.

@deanjamesss
Created September 14, 2020 05:15
Show Gist options
  • Select an option

  • Save deanjamesss/b5f4b421adbe87e4f13fcee381d380b5 to your computer and use it in GitHub Desktop.

Select an option

Save deanjamesss/b5f4b421adbe87e4f13fcee381d380b5 to your computer and use it in GitHub Desktop.
rows, columns = df.shape
cell_count = rows * columns
number_of_nulls = df.isnull().sum().sum()
percentage_of_missing = (number_of_nulls / cell_count) * 100
print(f'Percentage of missing values: {percentage_of_missing}%')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment