Created
April 15, 2017 09:52
-
-
Save QuantumDamage/bdc2c441d69fc808c0839a56774808c9 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
heartData = pd.read_csv("../input/processed.cleveland.data", | |
names=["age", "sex", "cp", "trestbps", "chol", "fbs", "restecg", "thalach", "exang", | |
"oldpeak", "slope", "ca", "thal", "num"]) | |
heartData["ca"] = pd.to_numeric(heartData["ca"], errors='coerce') | |
heartData["thal"] = pd.to_numeric(heartData["thal"], errors='coerce') | |
heartData = heartData[(heartData["num"] == 0) | (heartData["num"] == 1)] | |
heartTarget = heartData["num"] | |
heartData = heartData.drop("num", axis=1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment