Last active
February 28, 2022 11:26
-
-
Save AI-MOO/f9fc07432b90d855c1f0404b6d9a80f7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# تصوير البيانات الخاصة بالميزات الرقمية المتصلة بالنسبة لحالة الشخص (وجود مرض قلبي من عدمه) | |
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