Skip to content

Instantly share code, notes, and snippets.

@MoGaber
Created December 14, 2020 05:05
Show Gist options
  • Save MoGaber/84039fbec3d98ea3026be3d4c2bcc2f6 to your computer and use it in GitHub Desktop.
Save MoGaber/84039fbec3d98ea3026be3d4c2bcc2f6 to your computer and use it in GitHub Desktop.
model_dataset
model_dataset = model_dataset.drop(columns = ["email_id", "professional_id", "emails_date_sent", "emails_frequency_level",
"question_id", "answers_id", "answers_date_added", "answers_body", "time_taken"])
cols = model_dataset.columns
colours = ['#000099', '#ffff00'] # specify the colours - yellow is missing. blue is not missing.
sns.heatmap(model_dataset[cols].isnull(), cmap=sns.color_palette(colours))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment