Skip to content

Instantly share code, notes, and snippets.

@WillKoehrsen
Created August 15, 2018 19:10
Show Gist options
  • Save WillKoehrsen/8e3c0d509a3d905e58397419a99b5b14 to your computer and use it in GitHub Desktop.
Save WillKoehrsen/8e3c0d509a3d905e58397419a99b5b14 to your computer and use it in GitHub Desktop.
import pandas as pd
# Number of missing in each column
missing = pd.DataFrame(data.isnull().sum()).rename(columns = {0: 'total'})
# Create a percentage missing
missing['percent'] = missing['total'] / len(data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment