-
-
Save amankharwal/695ac02304ee376f284974766455e13a 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
# Create another figure | |
plt.figure(figsize=(10, 8)) | |
# Scatter with postivie examples | |
plt.scatter(df.age[df.target==1], | |
df.thalach[df.target==1], | |
c="salmon") | |
# Scatter with negative examples | |
plt.scatter(df.age[df.target==0], | |
df.thalach[df.target==0], | |
c="lightblue") | |
# Add some helpful info | |
plt.title("Heart Disease in function of Age and Max Heart Rate") | |
plt.xlabel("Age") | |
plt.ylabel("Max Heart Rate") | |
plt.legend(["Disease", "No Disease"]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment