Datasets:
age int64 | sex int64 | sex_label string | cp int64 | cp_label string | trestbps int64 | chol int64 | fbs int64 | fbs_label string | restecg int64 | restecg_label string | thalach int64 | exang int64 | exang_label string | oldpeak float64 | slope int64 | slope_label string | ca int64 | ca_flag bool | thal int64 | thal_label string | thal_flag bool | target int64 | target_label string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
52 | 1 | Male | 0 | Typical Angina | 125 | 212 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 168 | 0 | No | 1 | 2 | Downsloping | 2 | false | 3 | Reversible Defect | false | 0 | No Disease |
53 | 1 | Male | 0 | Typical Angina | 140 | 203 | 1 | >120 mg/dl | 0 | Normal | 155 | 1 | Yes | 3.1 | 0 | Upsloping | 0 | false | 3 | Reversible Defect | false | 0 | No Disease |
70 | 1 | Male | 0 | Typical Angina | 145 | 174 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 125 | 1 | Yes | 2.6 | 0 | Upsloping | 0 | false | 3 | Reversible Defect | false | 0 | No Disease |
61 | 1 | Male | 0 | Typical Angina | 148 | 203 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 161 | 0 | No | 0 | 2 | Downsloping | 1 | false | 3 | Reversible Defect | false | 0 | No Disease |
62 | 0 | Female | 0 | Typical Angina | 138 | 294 | 1 | >120 mg/dl | 1 | ST-T Wave Abnormality | 106 | 0 | No | 1.9 | 1 | Flat | 3 | false | 2 | Fixed Defect | false | 0 | No Disease |
58 | 0 | Female | 0 | Typical Angina | 100 | 248 | 0 | <=120 mg/dl | 0 | Normal | 122 | 0 | No | 1 | 1 | Flat | 0 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
58 | 1 | Male | 0 | Typical Angina | 114 | 318 | 0 | <=120 mg/dl | 2 | Left Ventricular Hypertrophy | 140 | 0 | No | 4.4 | 0 | Upsloping | 3 | false | 1 | Normal | false | 0 | No Disease |
55 | 1 | Male | 0 | Typical Angina | 160 | 289 | 0 | <=120 mg/dl | 0 | Normal | 145 | 1 | Yes | 0.8 | 1 | Flat | 1 | false | 3 | Reversible Defect | false | 0 | No Disease |
46 | 1 | Male | 0 | Typical Angina | 120 | 249 | 0 | <=120 mg/dl | 0 | Normal | 144 | 0 | No | 0.8 | 2 | Downsloping | 0 | false | 3 | Reversible Defect | false | 0 | No Disease |
54 | 1 | Male | 0 | Typical Angina | 122 | 286 | 0 | <=120 mg/dl | 0 | Normal | 116 | 1 | Yes | 3.2 | 1 | Flat | 2 | false | 2 | Fixed Defect | false | 0 | No Disease |
71 | 0 | Female | 0 | Typical Angina | 112 | 149 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 125 | 0 | No | 1.6 | 1 | Flat | 0 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
43 | 0 | Female | 0 | Typical Angina | 132 | 341 | 1 | >120 mg/dl | 0 | Normal | 136 | 1 | Yes | 3 | 1 | Flat | 0 | false | 3 | Reversible Defect | false | 0 | No Disease |
34 | 0 | Female | 1 | Atypical Angina | 118 | 210 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 192 | 0 | No | 0.7 | 2 | Downsloping | 0 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
51 | 1 | Male | 0 | Typical Angina | 140 | 298 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 122 | 1 | Yes | 4.2 | 1 | Flat | 3 | false | 3 | Reversible Defect | false | 0 | No Disease |
52 | 1 | Male | 0 | Typical Angina | 128 | 204 | 1 | >120 mg/dl | 1 | ST-T Wave Abnormality | 156 | 1 | Yes | 1 | 1 | Flat | 0 | false | 0 | Unknown/Missing | true | 0 | No Disease |
51 | 0 | Female | 2 | Non-Anginal Pain | 140 | 308 | 0 | <=120 mg/dl | 0 | Normal | 142 | 0 | No | 1.5 | 2 | Downsloping | 1 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
54 | 1 | Male | 0 | Typical Angina | 124 | 266 | 0 | <=120 mg/dl | 0 | Normal | 109 | 1 | Yes | 2.2 | 1 | Flat | 1 | false | 3 | Reversible Defect | false | 0 | No Disease |
50 | 0 | Female | 1 | Atypical Angina | 120 | 244 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 162 | 0 | No | 1.1 | 2 | Downsloping | 0 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
58 | 1 | Male | 2 | Non-Anginal Pain | 140 | 211 | 1 | >120 mg/dl | 0 | Normal | 165 | 0 | No | 0 | 2 | Downsloping | 0 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
60 | 1 | Male | 2 | Non-Anginal Pain | 140 | 185 | 0 | <=120 mg/dl | 0 | Normal | 155 | 0 | No | 3 | 1 | Flat | 0 | false | 2 | Fixed Defect | false | 0 | No Disease |
67 | 0 | Female | 0 | Typical Angina | 106 | 223 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 142 | 0 | No | 0.3 | 2 | Downsloping | 2 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
45 | 1 | Male | 0 | Typical Angina | 104 | 208 | 0 | <=120 mg/dl | 0 | Normal | 148 | 1 | Yes | 3 | 1 | Flat | 0 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
63 | 0 | Female | 2 | Non-Anginal Pain | 135 | 252 | 0 | <=120 mg/dl | 0 | Normal | 172 | 0 | No | 0 | 2 | Downsloping | 0 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
42 | 0 | Female | 2 | Non-Anginal Pain | 120 | 209 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 173 | 0 | No | 0 | 1 | Flat | 0 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
61 | 0 | Female | 0 | Typical Angina | 145 | 307 | 0 | <=120 mg/dl | 0 | Normal | 146 | 1 | Yes | 1 | 1 | Flat | 0 | false | 3 | Reversible Defect | false | 0 | No Disease |
44 | 1 | Male | 2 | Non-Anginal Pain | 130 | 233 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 179 | 1 | Yes | 0.4 | 2 | Downsloping | 0 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
58 | 0 | Female | 1 | Atypical Angina | 136 | 319 | 1 | >120 mg/dl | 0 | Normal | 152 | 0 | No | 0 | 2 | Downsloping | 2 | false | 2 | Fixed Defect | false | 0 | No Disease |
56 | 1 | Male | 2 | Non-Anginal Pain | 130 | 256 | 1 | >120 mg/dl | 0 | Normal | 142 | 1 | Yes | 0.6 | 1 | Flat | 1 | false | 1 | Normal | false | 0 | No Disease |
55 | 0 | Female | 0 | Typical Angina | 180 | 327 | 0 | <=120 mg/dl | 2 | Left Ventricular Hypertrophy | 117 | 1 | Yes | 3.4 | 1 | Flat | 0 | false | 2 | Fixed Defect | false | 0 | No Disease |
44 | 1 | Male | 0 | Typical Angina | 120 | 169 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 144 | 1 | Yes | 2.8 | 0 | Upsloping | 0 | false | 1 | Normal | false | 0 | No Disease |
57 | 1 | Male | 0 | Typical Angina | 130 | 131 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 115 | 1 | Yes | 1.2 | 1 | Flat | 1 | false | 3 | Reversible Defect | false | 0 | No Disease |
70 | 1 | Male | 2 | Non-Anginal Pain | 160 | 269 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 112 | 1 | Yes | 2.9 | 1 | Flat | 1 | false | 3 | Reversible Defect | false | 0 | No Disease |
50 | 1 | Male | 2 | Non-Anginal Pain | 129 | 196 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 163 | 0 | No | 0 | 2 | Downsloping | 0 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
46 | 1 | Male | 2 | Non-Anginal Pain | 150 | 231 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 147 | 0 | No | 3.6 | 1 | Flat | 0 | false | 2 | Fixed Defect | false | 0 | No Disease |
51 | 1 | Male | 3 | Asymptomatic | 125 | 213 | 0 | <=120 mg/dl | 0 | Normal | 125 | 1 | Yes | 1.4 | 2 | Downsloping | 1 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
59 | 1 | Male | 0 | Typical Angina | 138 | 271 | 0 | <=120 mg/dl | 0 | Normal | 182 | 0 | No | 0 | 2 | Downsloping | 0 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
64 | 1 | Male | 0 | Typical Angina | 128 | 263 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 105 | 1 | Yes | 0.2 | 1 | Flat | 1 | false | 3 | Reversible Defect | false | 1 | Heart Disease |
57 | 1 | Male | 2 | Non-Anginal Pain | 128 | 229 | 0 | <=120 mg/dl | 0 | Normal | 150 | 0 | No | 0.4 | 1 | Flat | 1 | false | 3 | Reversible Defect | false | 0 | No Disease |
65 | 0 | Female | 2 | Non-Anginal Pain | 160 | 360 | 0 | <=120 mg/dl | 0 | Normal | 151 | 0 | No | 0.8 | 2 | Downsloping | 0 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
54 | 1 | Male | 2 | Non-Anginal Pain | 120 | 258 | 0 | <=120 mg/dl | 0 | Normal | 147 | 0 | No | 0.4 | 1 | Flat | 0 | false | 3 | Reversible Defect | false | 1 | Heart Disease |
61 | 0 | Female | 0 | Typical Angina | 130 | 330 | 0 | <=120 mg/dl | 0 | Normal | 169 | 0 | No | 0 | 2 | Downsloping | 0 | false | 2 | Fixed Defect | false | 0 | No Disease |
55 | 0 | Female | 1 | Atypical Angina | 132 | 342 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 166 | 0 | No | 1.2 | 2 | Downsloping | 0 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
42 | 1 | Male | 0 | Typical Angina | 140 | 226 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 178 | 0 | No | 0 | 2 | Downsloping | 0 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
41 | 1 | Male | 1 | Atypical Angina | 135 | 203 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 132 | 0 | No | 0 | 1 | Flat | 0 | false | 1 | Normal | false | 1 | Heart Disease |
66 | 0 | Female | 0 | Typical Angina | 178 | 228 | 1 | >120 mg/dl | 1 | ST-T Wave Abnormality | 165 | 1 | Yes | 1 | 1 | Flat | 2 | false | 3 | Reversible Defect | false | 0 | No Disease |
66 | 0 | Female | 2 | Non-Anginal Pain | 146 | 278 | 0 | <=120 mg/dl | 0 | Normal | 152 | 0 | No | 0 | 1 | Flat | 1 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
60 | 1 | Male | 0 | Typical Angina | 117 | 230 | 1 | >120 mg/dl | 1 | ST-T Wave Abnormality | 160 | 1 | Yes | 1.4 | 2 | Downsloping | 2 | false | 3 | Reversible Defect | false | 0 | No Disease |
58 | 0 | Female | 3 | Asymptomatic | 150 | 283 | 1 | >120 mg/dl | 0 | Normal | 162 | 0 | No | 1 | 2 | Downsloping | 0 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
57 | 0 | Female | 0 | Typical Angina | 140 | 241 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 123 | 1 | Yes | 0.2 | 1 | Flat | 0 | false | 3 | Reversible Defect | false | 0 | No Disease |
38 | 1 | Male | 2 | Non-Anginal Pain | 138 | 175 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 173 | 0 | No | 0 | 2 | Downsloping | 4 | true | 2 | Fixed Defect | false | 1 | Heart Disease |
49 | 1 | Male | 2 | Non-Anginal Pain | 120 | 188 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 139 | 0 | No | 2 | 1 | Flat | 3 | false | 3 | Reversible Defect | false | 0 | No Disease |
55 | 1 | Male | 0 | Typical Angina | 140 | 217 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 111 | 1 | Yes | 5.6 | 0 | Upsloping | 0 | false | 3 | Reversible Defect | false | 0 | No Disease |
56 | 1 | Male | 3 | Asymptomatic | 120 | 193 | 0 | <=120 mg/dl | 0 | Normal | 162 | 0 | No | 1.9 | 1 | Flat | 0 | false | 3 | Reversible Defect | false | 1 | Heart Disease |
48 | 1 | Male | 1 | Atypical Angina | 130 | 245 | 0 | <=120 mg/dl | 0 | Normal | 180 | 0 | No | 0.2 | 1 | Flat | 0 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
67 | 1 | Male | 2 | Non-Anginal Pain | 152 | 212 | 0 | <=120 mg/dl | 0 | Normal | 150 | 0 | No | 0.8 | 1 | Flat | 0 | false | 3 | Reversible Defect | false | 0 | No Disease |
57 | 1 | Male | 1 | Atypical Angina | 154 | 232 | 0 | <=120 mg/dl | 0 | Normal | 164 | 0 | No | 0 | 2 | Downsloping | 1 | false | 2 | Fixed Defect | false | 0 | No Disease |
29 | 1 | Male | 1 | Atypical Angina | 130 | 204 | 0 | <=120 mg/dl | 0 | Normal | 202 | 0 | No | 0 | 2 | Downsloping | 0 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
67 | 1 | Male | 0 | Typical Angina | 100 | 299 | 0 | <=120 mg/dl | 0 | Normal | 125 | 1 | Yes | 0.9 | 1 | Flat | 2 | false | 2 | Fixed Defect | false | 0 | No Disease |
59 | 1 | Male | 2 | Non-Anginal Pain | 150 | 212 | 1 | >120 mg/dl | 1 | ST-T Wave Abnormality | 157 | 0 | No | 1.6 | 2 | Downsloping | 0 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
59 | 1 | Male | 3 | Asymptomatic | 170 | 288 | 0 | <=120 mg/dl | 0 | Normal | 159 | 0 | No | 0.2 | 1 | Flat | 0 | false | 3 | Reversible Defect | false | 0 | No Disease |
53 | 1 | Male | 2 | Non-Anginal Pain | 130 | 197 | 1 | >120 mg/dl | 0 | Normal | 152 | 0 | No | 1.2 | 0 | Upsloping | 0 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
42 | 1 | Male | 0 | Typical Angina | 136 | 315 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 125 | 1 | Yes | 1.8 | 1 | Flat | 0 | false | 1 | Normal | false | 0 | No Disease |
37 | 0 | Female | 2 | Non-Anginal Pain | 120 | 215 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 170 | 0 | No | 0 | 2 | Downsloping | 0 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
62 | 0 | Female | 0 | Typical Angina | 160 | 164 | 0 | <=120 mg/dl | 0 | Normal | 145 | 0 | No | 6.2 | 0 | Upsloping | 3 | false | 3 | Reversible Defect | false | 0 | No Disease |
59 | 1 | Male | 0 | Typical Angina | 170 | 326 | 0 | <=120 mg/dl | 0 | Normal | 140 | 1 | Yes | 3.4 | 0 | Upsloping | 0 | false | 3 | Reversible Defect | false | 0 | No Disease |
61 | 1 | Male | 0 | Typical Angina | 140 | 207 | 0 | <=120 mg/dl | 0 | Normal | 138 | 1 | Yes | 1.9 | 2 | Downsloping | 1 | false | 3 | Reversible Defect | false | 0 | No Disease |
56 | 1 | Male | 0 | Typical Angina | 125 | 249 | 1 | >120 mg/dl | 0 | Normal | 144 | 1 | Yes | 1.2 | 1 | Flat | 1 | false | 2 | Fixed Defect | false | 0 | No Disease |
59 | 1 | Male | 0 | Typical Angina | 140 | 177 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 162 | 1 | Yes | 0 | 2 | Downsloping | 1 | false | 3 | Reversible Defect | false | 0 | No Disease |
48 | 1 | Male | 0 | Typical Angina | 130 | 256 | 1 | >120 mg/dl | 0 | Normal | 150 | 1 | Yes | 0 | 2 | Downsloping | 2 | false | 3 | Reversible Defect | false | 0 | No Disease |
47 | 1 | Male | 2 | Non-Anginal Pain | 138 | 257 | 0 | <=120 mg/dl | 0 | Normal | 156 | 0 | No | 0 | 2 | Downsloping | 0 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
48 | 1 | Male | 2 | Non-Anginal Pain | 124 | 255 | 1 | >120 mg/dl | 1 | ST-T Wave Abnormality | 175 | 0 | No | 0 | 2 | Downsloping | 2 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
63 | 1 | Male | 0 | Typical Angina | 140 | 187 | 0 | <=120 mg/dl | 0 | Normal | 144 | 1 | Yes | 4 | 2 | Downsloping | 2 | false | 3 | Reversible Defect | false | 0 | No Disease |
52 | 1 | Male | 1 | Atypical Angina | 134 | 201 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 158 | 0 | No | 0.8 | 2 | Downsloping | 1 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
50 | 1 | Male | 2 | Non-Anginal Pain | 140 | 233 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 163 | 0 | No | 0.6 | 1 | Flat | 1 | false | 3 | Reversible Defect | false | 0 | No Disease |
49 | 1 | Male | 2 | Non-Anginal Pain | 118 | 149 | 0 | <=120 mg/dl | 0 | Normal | 126 | 0 | No | 0.8 | 2 | Downsloping | 3 | false | 2 | Fixed Defect | false | 0 | No Disease |
44 | 1 | Male | 1 | Atypical Angina | 120 | 220 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 170 | 0 | No | 0 | 2 | Downsloping | 0 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
59 | 0 | Female | 0 | Typical Angina | 174 | 249 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 143 | 1 | Yes | 0 | 1 | Flat | 0 | false | 2 | Fixed Defect | false | 0 | No Disease |
62 | 0 | Female | 0 | Typical Angina | 140 | 268 | 0 | <=120 mg/dl | 0 | Normal | 160 | 0 | No | 3.6 | 0 | Upsloping | 2 | false | 2 | Fixed Defect | false | 0 | No Disease |
68 | 1 | Male | 0 | Typical Angina | 144 | 193 | 1 | >120 mg/dl | 1 | ST-T Wave Abnormality | 141 | 0 | No | 3.4 | 1 | Flat | 2 | false | 3 | Reversible Defect | false | 0 | No Disease |
54 | 0 | Female | 2 | Non-Anginal Pain | 108 | 267 | 0 | <=120 mg/dl | 0 | Normal | 167 | 0 | No | 0 | 2 | Downsloping | 0 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
62 | 0 | Female | 0 | Typical Angina | 124 | 209 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 163 | 0 | No | 0 | 2 | Downsloping | 0 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
62 | 1 | Male | 1 | Atypical Angina | 128 | 208 | 1 | >120 mg/dl | 0 | Normal | 140 | 0 | No | 0 | 2 | Downsloping | 0 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
45 | 0 | Female | 0 | Typical Angina | 138 | 236 | 0 | <=120 mg/dl | 0 | Normal | 152 | 1 | Yes | 0.2 | 1 | Flat | 0 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
57 | 0 | Female | 0 | Typical Angina | 128 | 303 | 0 | <=120 mg/dl | 0 | Normal | 159 | 0 | No | 0 | 2 | Downsloping | 1 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
53 | 1 | Male | 0 | Typical Angina | 123 | 282 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 95 | 1 | Yes | 2 | 1 | Flat | 2 | false | 3 | Reversible Defect | false | 0 | No Disease |
65 | 1 | Male | 0 | Typical Angina | 110 | 248 | 0 | <=120 mg/dl | 0 | Normal | 158 | 0 | No | 0.6 | 2 | Downsloping | 2 | false | 1 | Normal | false | 0 | No Disease |
76 | 0 | Female | 2 | Non-Anginal Pain | 140 | 197 | 0 | <=120 mg/dl | 2 | Left Ventricular Hypertrophy | 116 | 0 | No | 1.1 | 1 | Flat | 0 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
43 | 0 | Female | 2 | Non-Anginal Pain | 122 | 213 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 165 | 0 | No | 0.2 | 1 | Flat | 0 | false | 2 | Fixed Defect | false | 1 | Heart Disease |
57 | 1 | Male | 2 | Non-Anginal Pain | 150 | 126 | 1 | >120 mg/dl | 1 | ST-T Wave Abnormality | 173 | 0 | No | 0.2 | 2 | Downsloping | 1 | false | 3 | Reversible Defect | false | 1 | Heart Disease |
54 | 1 | Male | 1 | Atypical Angina | 108 | 309 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 156 | 0 | No | 0 | 2 | Downsloping | 0 | false | 3 | Reversible Defect | false | 1 | Heart Disease |
52 | 1 | Male | 3 | Asymptomatic | 118 | 186 | 0 | <=120 mg/dl | 0 | Normal | 190 | 0 | No | 0 | 1 | Flat | 0 | false | 1 | Normal | false | 1 | Heart Disease |
47 | 1 | Male | 0 | Typical Angina | 110 | 275 | 0 | <=120 mg/dl | 0 | Normal | 118 | 1 | Yes | 1 | 1 | Flat | 1 | false | 2 | Fixed Defect | false | 0 | No Disease |
51 | 1 | Male | 0 | Typical Angina | 140 | 299 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 173 | 1 | Yes | 1.6 | 2 | Downsloping | 0 | false | 3 | Reversible Defect | false | 0 | No Disease |
62 | 1 | Male | 1 | Atypical Angina | 120 | 281 | 0 | <=120 mg/dl | 0 | Normal | 103 | 0 | No | 1.4 | 1 | Flat | 1 | false | 3 | Reversible Defect | false | 0 | No Disease |
40 | 1 | Male | 0 | Typical Angina | 152 | 223 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 181 | 0 | No | 0 | 2 | Downsloping | 0 | false | 3 | Reversible Defect | false | 0 | No Disease |
54 | 1 | Male | 0 | Typical Angina | 110 | 206 | 0 | <=120 mg/dl | 0 | Normal | 108 | 1 | Yes | 0 | 1 | Flat | 1 | false | 2 | Fixed Defect | false | 0 | No Disease |
44 | 1 | Male | 0 | Typical Angina | 110 | 197 | 0 | <=120 mg/dl | 0 | Normal | 177 | 0 | No | 0 | 2 | Downsloping | 1 | false | 2 | Fixed Defect | false | 0 | No Disease |
53 | 1 | Male | 0 | Typical Angina | 142 | 226 | 0 | <=120 mg/dl | 0 | Normal | 111 | 1 | Yes | 0 | 2 | Downsloping | 0 | false | 3 | Reversible Defect | false | 1 | Heart Disease |
57 | 1 | Male | 0 | Typical Angina | 110 | 335 | 0 | <=120 mg/dl | 1 | ST-T Wave Abnormality | 143 | 1 | Yes | 3 | 1 | Flat | 1 | false | 3 | Reversible Defect | false | 0 | No Disease |
59 | 1 | Male | 2 | Non-Anginal Pain | 126 | 218 | 1 | >120 mg/dl | 1 | ST-T Wave Abnormality | 134 | 0 | No | 2.2 | 1 | Flat | 1 | false | 1 | Normal | false | 0 | No Disease |
Heart Disease Dataset (Cleveland UCI)
A cleaned and enriched version of the classic UCI Cleveland Heart Disease Dataset, one of the most widely used benchmarks in medical machine learning research. This dataset contains clinical and diagnostic measurements from 302 patients used to predict the presence or absence of heart disease.
Dataset Summary
| Property | Value |
|---|---|
| Source | UCI Machine Learning Repository — Cleveland Clinic Foundation |
| Kaggle Source | johnsmith88/heart-disease-dataset |
| Task | Binary Classification |
| Samples | 302 (deduplicated from 1,025 raw rows) |
| Features | 13 input features + 1 target |
| Target | target — 0 = No Disease, 1 = Heart Disease |
| Missing Values | None (anomalous encodings flagged) |
| License | Unknown (original UCI data is publicly available for research) |
Background
The original Cleveland Heart Disease data was collected at the Cleveland Clinic Foundation and donated to the UCI ML Repository by David W. Aha in 1988. It has been used in hundreds of peer-reviewed publications on cardiovascular risk prediction, explainable AI, and clinical decision support.
The Kaggle version of this dataset contained 1,025 rows — the original 302 unique records inflated with 723 duplicate rows. This release removes all duplicates and restores the dataset to its canonical 302-sample form, with added human-readable label columns for each categorical feature.
Cleaning & Processing
The following steps were applied to produce heart_disease_cleaned.csv:
- Deduplication — Removed 723 duplicate rows, restoring the 302-sample Cleveland dataset.
- Anomaly flagging — Two rows with
thal=0and four rows withca=4were flagged (boolean columnsthal_flagandca_flag). These values fall outside the standard Cleveland encoding and may represent missing data in the original collection. They are retained with flags rather than silently dropped. - Label enrichment — Human-readable label columns were added for all categorical features (see schema below).
- Column reordering — Columns are arranged semantically: demographics → cardiac symptoms → test results → target.
Schema
Numeric / Encoded Features
| Column | Type | Description |
|---|---|---|
age |
int | Age of the patient in years |
sex |
int | Sex: 0 = Female, 1 = Male |
cp |
int | Chest pain type: 0 = Typical Angina, 1 = Atypical Angina, 2 = Non-Anginal Pain, 3 = Asymptomatic |
trestbps |
int | Resting blood pressure (mm Hg) on admission |
chol |
int | Serum cholesterol (mg/dl) |
fbs |
int | Fasting blood sugar > 120 mg/dl: 0 = No, 1 = Yes |
restecg |
int | Resting ECG results: 0 = Normal, 1 = ST-T Wave Abnormality, 2 = Left Ventricular Hypertrophy |
thalach |
int | Maximum heart rate achieved (bpm) |
exang |
int | Exercise-induced angina: 0 = No, 1 = Yes |
oldpeak |
float | ST depression induced by exercise relative to rest |
slope |
int | Slope of peak exercise ST segment: 0 = Upsloping, 1 = Flat, 2 = Downsloping |
ca |
int | Number of major vessels colored by fluoroscopy (0–3); value 4 flagged as anomalous |
thal |
int | Thalassemia: 1 = Normal, 2 = Fixed Defect, 3 = Reversible Defect; value 0 flagged as anomalous |
target |
int | Diagnosis of heart disease: 0 = No Disease, 1 = Heart Disease |
Added Label Columns
| Column | Description |
|---|---|
sex_label |
Human-readable sex label |
cp_label |
Human-readable chest pain type |
fbs_label |
Human-readable fasting blood sugar |
restecg_label |
Human-readable resting ECG result |
exang_label |
Human-readable exercise-induced angina |
slope_label |
Human-readable ST slope |
thal_label |
Human-readable thalassemia result |
target_label |
Human-readable diagnosis |
thal_flag |
True if thal=0 (encoding anomaly) |
ca_flag |
True if ca=4 (encoding anomaly) |
Class Distribution
| Class | Count | Percentage |
|---|---|---|
| Heart Disease (1) | 164 | 54.3% |
| No Disease (0) | 138 | 45.7% |
The dataset is approximately balanced, making it suitable for standard binary classification without aggressive resampling.
Patient Demographics
| Feature | Value |
|---|---|
| Age range | 29 – 77 years |
| Mean age | 54.4 years |
| Median age | 55.5 years |
| Male patients | 206 (68.2%) |
| Female patients | 96 (31.8%) |
Usage
from datasets import load_dataset
ds = load_dataset("electricsheepafrica/heart-disease-cleveland")
df = ds["train"].to_pandas()
print(df["target_label"].value_counts())
Or with pandas directly:
import pandas as pd
df = pd.read_csv("heart_disease_cleaned.csv")
# Features and target
X = df[["age","sex","cp","trestbps","chol","fbs","restecg",
"thalach","exang","oldpeak","slope","ca","thal"]]
y = df["target"]
Example: Quick Baseline
from datasets import load_dataset
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import cross_val_score
import pandas as pd
ds = load_dataset("electricsheepafrica/heart-disease-cleveland", split="train")
df = ds.to_pandas()
feature_cols = ["age","sex","cp","trestbps","chol","fbs","restecg",
"thalach","exang","oldpeak","slope","ca","thal"]
X = df[feature_cols]
y = df["target"]
clf = RandomForestClassifier(n_estimators=100, random_state=42)
scores = cross_val_score(clf, X, y, cv=5, scoring="accuracy")
print(f"CV Accuracy: {scores.mean():.3f} ± {scores.std():.3f}")
Known Issues & Limitations
- Encoding anomalies: 2 rows have
thal=0and 4 rows haveca=4, which are outside the standard Cleveland encoding range. These are flagged withthal_flagandca_flagboolean columns. - Small sample size: 302 samples may limit generalization. Consider augmentation or transfer learning for production clinical models.
- Single-site data: All patients were collected from the Cleveland Clinic Foundation. External validity to other populations should be evaluated carefully.
- No temporal data: This is a cross-sectional snapshot; no longitudinal follow-up is included.
Citation
If you use this dataset, please cite the original UCI source:
Detrano, R., Janosi, A., Steinbrunn, W., Pfisterer, M., Schmid, J., Sandhu, S., Guppy, K., Lee, S., & Froelicher, V. (1989).
International application of a new probability algorithm for the diagnosis of coronary artery disease.
American Journal of Cardiology, 64(5), 304-310.
Dua, D. and Graff, C. (2019). UCI Machine Learning Repository. Irvine, CA: University of California,
School of Information and Computer Science. http://archive.ics.uci.edu/ml
Collection
This dataset is part of the Electric Sheep Africa — Healthcare Collection, a curated set of medical and clinical datasets for research and education.
Explore the full collection: electricsheepafrica
- Downloads last month
- 28