Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created November 10, 2020 07:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/bbdd1bf4a3c50dfcea21cff3a6596e61 to your computer and use it in GitHub Desktop.
Save amankharwal/bbdd1bf4a3c50dfcea21cff3a6596e61 to your computer and use it in GitHub Desktop.
plt.figure(figsize=(15, 15))
for i, column in enumerate(continous_val, 1):
plt.subplot(3, 2, i)
df[df["target"] == 0][column].hist(bins=35, color='blue', label='Have Heart Disease = NO', alpha=0.6)
df[df["target"] == 1][column].hist(bins=35, color='red', label='Have Heart Disease = YES', alpha=0.6)
plt.legend()
plt.xlabel(column)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment