Skip to content

Instantly share code, notes, and snippets.

@QuantumDamage
Created April 15, 2017 09:52
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 QuantumDamage/bdc2c441d69fc808c0839a56774808c9 to your computer and use it in GitHub Desktop.
Save QuantumDamage/bdc2c441d69fc808c0839a56774808c9 to your computer and use it in GitHub Desktop.
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