{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Лабораторная работа №4. Обучение с учителем.\n", "\n", "## Датасет \"Набор данных для анализа и прогнозирования сердечного приступа\".\n", "\n", "[**Ссылка**](https://www.kaggle.com/datasets/kamilpytlak/personal-key-indicators-of-heart-disease)\n", "\n", "### Описание датасета\n", "\n", "**Проблемная область**: Датасет связан с медицинской статистикой и направлен на анализ факторов, связанных с риском сердечного приступа. Это важно для прогнозирования и разработки стратегий профилактики сердечно-сосудистых заболеваний.\n", "\n", "**Актуальность**: Сердечно-сосудистые заболевания являются одной из ведущих причин смертности во всем мире. Анализ данных об образе жизни, состоянии здоровья и наследственных факторах позволяет выделить ключевые предикторы, влияющие на развитие сердечно-сосудистых заболеваний. Этот датасет предоставляет инструменты для анализа таких факторов и может быть полезен в создании прогнозных моделей, направленных на снижение рисков и своевременную диагностику.\n", "\n", "**Объекты наблюдения**: Каждая запись представляет собой данные о человеке, включая информацию об их состоянии здоровья, образе жизни, демографических характеристиках и наличию определенных заболеваний. Объекты наблюдений — это индивидуальные пациенты.\n", "\n", "**Атрибуты объектов:**\n", "- `HeartDisease` — наличие сердечного приступа (Yes/No) (целевая переменная).\n", "- `BMI` — индекс массы тела (Body Mass Index), числовой показатель.\n", "- `Smoking` — курение (Yes/No).\n", "- `AlcoholDrinking` — употребление алкоголя (Yes/No).\n", "- `Stroke` — наличие инсульта (Yes/No).\n", "- `PhysicalHealth` — количество дней в месяц, когда физическое здоровье было неудовлетворительным.\n", "- `MentalHealth` — количество дней в месяц, когда психическое здоровье было неудовлетворительным.\n", "- `DiffWalking` — трудности при ходьбе (Yes/No).\n", "- `Sex` — пол (Male/Female).\n", "- `AgeCategory` — возрастная категория (например, 55-59, 80 or older).\n", "- `Race` — расовая принадлежность (например, White, Black).\n", "- `Diabetic` — наличие диабета (Yes/No/No, borderline diabetes).\n", "- `PhysicalActivity` — физическая активность (Yes/No).\n", "- `GenHealth` — общее состояние здоровья (от Excellent до Poor).\n", "- `SleepTime` — среднее количество часов сна за сутки.\n", "- `Asthma` — наличие астмы (Yes/No).\n", "- `KidneyDisease` — наличие заболеваний почек (Yes/No).\n", "- `SkinCancer` — наличие кожного рака (Yes/No)." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | HeartDisease | \n", "BMI | \n", "Smoking | \n", "AlcoholDrinking | \n", "Stroke | \n", "PhysicalHealth | \n", "MentalHealth | \n", "DiffWalking | \n", "Sex | \n", "AgeCategory | \n", "Race | \n", "Diabetic | \n", "PhysicalActivity | \n", "GenHealth | \n", "SleepTime | \n", "Asthma | \n", "KidneyDisease | \n", "SkinCancer | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "No | \n", "16.60 | \n", "Yes | \n", "No | \n", "No | \n", "3.0 | \n", "30.0 | \n", "No | \n", "Female | \n", "55-59 | \n", "White | \n", "Yes | \n", "Yes | \n", "Very good | \n", "5.0 | \n", "Yes | \n", "No | \n", "Yes | \n", "
1 | \n", "No | \n", "20.34 | \n", "No | \n", "No | \n", "Yes | \n", "0.0 | \n", "0.0 | \n", "No | \n", "Female | \n", "80 or older | \n", "White | \n", "No | \n", "Yes | \n", "Very good | \n", "7.0 | \n", "No | \n", "No | \n", "No | \n", "
2 | \n", "No | \n", "26.58 | \n", "Yes | \n", "No | \n", "No | \n", "20.0 | \n", "30.0 | \n", "No | \n", "Male | \n", "65-69 | \n", "White | \n", "Yes | \n", "Yes | \n", "Fair | \n", "8.0 | \n", "Yes | \n", "No | \n", "No | \n", "
3 | \n", "No | \n", "24.21 | \n", "No | \n", "No | \n", "No | \n", "0.0 | \n", "0.0 | \n", "No | \n", "Female | \n", "75-79 | \n", "White | \n", "No | \n", "No | \n", "Good | \n", "6.0 | \n", "No | \n", "No | \n", "Yes | \n", "
4 | \n", "No | \n", "23.71 | \n", "No | \n", "No | \n", "No | \n", "28.0 | \n", "0.0 | \n", "Yes | \n", "Female | \n", "40-44 | \n", "White | \n", "No | \n", "Yes | \n", "Very good | \n", "8.0 | \n", "No | \n", "No | \n", "No | \n", "
\n", " | HeartDisease | \n", "BMI | \n", "Smoking | \n", "AlcoholDrinking | \n", "Stroke | \n", "PhysicalHealth | \n", "MentalHealth | \n", "DiffWalking | \n", "Sex | \n", "AgeCategory | \n", "Race | \n", "Diabetic | \n", "PhysicalActivity | \n", "GenHealth | \n", "SleepTime | \n", "Asthma | \n", "KidneyDisease | \n", "SkinCancer | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
249455 | \n", "No | \n", "65.00 | \n", "No | \n", "No | \n", "No | \n", "3.0 | \n", "0.0 | \n", "No | \n", "Female | \n", "30-34 | \n", "White | \n", "No | \n", "Yes | \n", "Good | \n", "7.0 | \n", "Yes | \n", "No | \n", "No | \n", "
14270 | \n", "No | \n", "31.89 | \n", "No | \n", "No | \n", "No | \n", "0.0 | \n", "0.0 | \n", "No | \n", "Female | \n", "55-59 | \n", "Hispanic | \n", "No | \n", "Yes | \n", "Good | \n", "8.0 | \n", "No | \n", "No | \n", "No | \n", "
163088 | \n", "No | \n", "24.41 | \n", "No | \n", "No | \n", "No | \n", "0.0 | \n", "5.0 | \n", "No | \n", "Male | \n", "40-44 | \n", "White | \n", "No | \n", "Yes | \n", "Very good | \n", "7.0 | \n", "No | \n", "No | \n", "No | \n", "
136626 | \n", "Yes | \n", "36.86 | \n", "Yes | \n", "No | \n", "No | \n", "30.0 | \n", "0.0 | \n", "Yes | \n", "Male | \n", "65-69 | \n", "White | \n", "No, borderline diabetes | \n", "No | \n", "Good | \n", "8.0 | \n", "No | \n", "No | \n", "No | \n", "
265773 | \n", "No | \n", "35.15 | \n", "Yes | \n", "No | \n", "No | \n", "2.0 | \n", "0.0 | \n", "No | \n", "Male | \n", "70-74 | \n", "White | \n", "No | \n", "Yes | \n", "Good | \n", "7.0 | \n", "No | \n", "Yes | \n", "No | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
193686 | \n", "No | \n", "30.43 | \n", "Yes | \n", "No | \n", "No | \n", "0.0 | \n", "0.0 | \n", "No | \n", "Male | \n", "55-59 | \n", "White | \n", "No | \n", "Yes | \n", "Excellent | \n", "7.0 | \n", "No | \n", "No | \n", "No | \n", "
207316 | \n", "No | \n", "33.66 | \n", "Yes | \n", "No | \n", "No | \n", "0.0 | \n", "0.0 | \n", "No | \n", "Female | \n", "55-59 | \n", "White | \n", "No | \n", "Yes | \n", "Very good | \n", "6.0 | \n", "No | \n", "No | \n", "No | \n", "
229094 | \n", "No | \n", "38.95 | \n", "No | \n", "No | \n", "No | \n", "0.0 | \n", "0.0 | \n", "No | \n", "Male | \n", "60-64 | \n", "White | \n", "Yes | \n", "Yes | \n", "Good | \n", "7.0 | \n", "No | \n", "No | \n", "No | \n", "
148788 | \n", "No | \n", "35.44 | \n", "Yes | \n", "No | \n", "No | \n", "0.0 | \n", "0.0 | \n", "No | \n", "Male | \n", "70-74 | \n", "White | \n", "No | \n", "No | \n", "Very good | \n", "6.0 | \n", "No | \n", "No | \n", "No | \n", "
35742 | \n", "No | \n", "27.26 | \n", "Yes | \n", "No | \n", "No | \n", "0.0 | \n", "0.0 | \n", "No | \n", "Male | \n", "35-39 | \n", "White | \n", "No | \n", "Yes | \n", "Very good | \n", "8.0 | \n", "No | \n", "No | \n", "No | \n", "
255836 rows × 18 columns
\n", "\n", " | HeartDisease | \n", "
---|---|
249455 | \n", "No | \n", "
14270 | \n", "No | \n", "
163088 | \n", "No | \n", "
136626 | \n", "Yes | \n", "
265773 | \n", "No | \n", "
... | \n", "... | \n", "
193686 | \n", "No | \n", "
207316 | \n", "No | \n", "
229094 | \n", "No | \n", "
148788 | \n", "No | \n", "
35742 | \n", "No | \n", "
255836 rows × 1 columns
\n", "\n", " | HeartDisease | \n", "BMI | \n", "Smoking | \n", "AlcoholDrinking | \n", "Stroke | \n", "PhysicalHealth | \n", "MentalHealth | \n", "DiffWalking | \n", "Sex | \n", "AgeCategory | \n", "Race | \n", "Diabetic | \n", "PhysicalActivity | \n", "GenHealth | \n", "SleepTime | \n", "Asthma | \n", "KidneyDisease | \n", "SkinCancer | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
215485 | \n", "No | \n", "32.89 | \n", "No | \n", "No | \n", "No | \n", "10.0 | \n", "5.0 | \n", "Yes | \n", "Male | \n", "45-49 | \n", "White | \n", "Yes | \n", "No | \n", "Good | \n", "6.0 | \n", "Yes | \n", "No | \n", "No | \n", "
150930 | \n", "No | \n", "33.00 | \n", "Yes | \n", "No | \n", "No | \n", "0.0 | \n", "0.0 | \n", "No | \n", "Male | \n", "50-54 | \n", "Black | \n", "No | \n", "No | \n", "Fair | \n", "8.0 | \n", "No | \n", "No | \n", "No | \n", "
305511 | \n", "No | \n", "39.16 | \n", "Yes | \n", "No | \n", "No | \n", "0.0 | \n", "0.0 | \n", "Yes | \n", "Female | \n", "75-79 | \n", "White | \n", "Yes | \n", "Yes | \n", "Very good | \n", "7.0 | \n", "No | \n", "No | \n", "No | \n", "
284576 | \n", "No | \n", "28.89 | \n", "Yes | \n", "No | \n", "No | \n", "0.0 | \n", "0.0 | \n", "No | \n", "Male | \n", "65-69 | \n", "White | \n", "Yes | \n", "Yes | \n", "Very good | \n", "7.0 | \n", "No | \n", "No | \n", "No | \n", "
170107 | \n", "No | \n", "33.96 | \n", "No | \n", "No | \n", "No | \n", "0.0 | \n", "0.0 | \n", "No | \n", "Female | \n", "60-64 | \n", "White | \n", "No | \n", "Yes | \n", "Very good | \n", "7.0 | \n", "No | \n", "No | \n", "No | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
318712 | \n", "No | \n", "34.70 | \n", "Yes | \n", "No | \n", "No | \n", "30.0 | \n", "0.0 | \n", "No | \n", "Male | \n", "25-29 | \n", "Hispanic | \n", "No | \n", "Yes | \n", "Excellent | \n", "8.0 | \n", "Yes | \n", "No | \n", "No | \n", "
169792 | \n", "No | \n", "32.61 | \n", "Yes | \n", "No | \n", "No | \n", "7.0 | \n", "0.0 | \n", "No | \n", "Female | \n", "60-64 | \n", "Hispanic | \n", "No | \n", "Yes | \n", "Fair | \n", "7.0 | \n", "No | \n", "No | \n", "No | \n", "
19564 | \n", "No | \n", "25.09 | \n", "Yes | \n", "No | \n", "No | \n", "0.0 | \n", "2.0 | \n", "No | \n", "Male | \n", "60-64 | \n", "Black | \n", "No | \n", "Yes | \n", "Very good | \n", "8.0 | \n", "No | \n", "No | \n", "No | \n", "
74293 | \n", "No | \n", "21.29 | \n", "Yes | \n", "Yes | \n", "No | \n", "0.0 | \n", "0.0 | \n", "Yes | \n", "Male | \n", "60-64 | \n", "White | \n", "Yes | \n", "Yes | \n", "Good | \n", "8.0 | \n", "No | \n", "No | \n", "No | \n", "
284877 | \n", "Yes | \n", "23.30 | \n", "No | \n", "No | \n", "No | \n", "0.0 | \n", "0.0 | \n", "No | \n", "Female | \n", "80 or older | \n", "White | \n", "No | \n", "Yes | \n", "Good | \n", "6.0 | \n", "No | \n", "No | \n", "No | \n", "
63959 rows × 18 columns
\n", "\n", " | HeartDisease | \n", "
---|---|
215485 | \n", "No | \n", "
150930 | \n", "No | \n", "
305511 | \n", "No | \n", "
284576 | \n", "No | \n", "
170107 | \n", "No | \n", "
... | \n", "... | \n", "
318712 | \n", "No | \n", "
169792 | \n", "No | \n", "
19564 | \n", "No | \n", "
74293 | \n", "No | \n", "
284877 | \n", "Yes | \n", "
63959 rows × 1 columns
\n", "\n", " | BMI | \n", "PhysicalHealth | \n", "MentalHealth | \n", "SleepTime | \n", "HeartDisease_Yes | \n", "Smoking_Yes | \n", "AlcoholDrinking_Yes | \n", "Stroke_Yes | \n", "DiffWalking_Yes | \n", "Sex_Male | \n", "... | \n", "Diabetic_Yes | \n", "Diabetic_Yes (during pregnancy) | \n", "PhysicalActivity_Yes | \n", "GenHealth_Fair | \n", "GenHealth_Good | \n", "GenHealth_Poor | \n", "GenHealth_Very good | \n", "Asthma_Yes | \n", "KidneyDisease_Yes | \n", "SkinCancer_Yes | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "5.773647 | \n", "-0.046285 | \n", "-0.489254 | \n", "-0.065882 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "... | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "
1 | \n", "0.561206 | \n", "-0.424023 | \n", "-0.489254 | \n", "0.630754 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "... | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "
2 | \n", "-0.616356 | \n", "-0.424023 | \n", "0.140196 | \n", "-0.065882 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "... | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "
3 | \n", "1.343623 | \n", "3.353355 | \n", "-0.489254 | \n", "0.630754 | \n", "1.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "1.0 | \n", "... | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "
4 | \n", "1.074421 | \n", "-0.172198 | \n", "-0.489254 | \n", "-0.065882 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "... | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
255831 | \n", "0.331361 | \n", "-0.424023 | \n", "-0.489254 | \n", "-0.065882 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "... | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "
255832 | \n", "0.839853 | \n", "-0.424023 | \n", "-0.489254 | \n", "-0.762519 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "... | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "
255833 | \n", "1.672648 | \n", "-0.424023 | \n", "-0.489254 | \n", "-0.065882 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "... | \n", "1.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "
255834 | \n", "1.120075 | \n", "-0.424023 | \n", "-0.489254 | \n", "-0.762519 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "... | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "
255835 | \n", "-0.167686 | \n", "-0.424023 | \n", "-0.489254 | \n", "0.630754 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "... | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "
255836 rows × 38 columns
\n", "\n", " | HeartDisease | \n", "BMI | \n", "Smoking | \n", "AlcoholDrinking | \n", "Stroke | \n", "PhysicalHealth | \n", "MentalHealth | \n", "DiffWalking | \n", "Sex | \n", "AgeCategory | \n", "Race | \n", "Diabetic | \n", "PhysicalActivity | \n", "GenHealth | \n", "SleepTime | \n", "Asthma | \n", "KidneyDisease | \n", "SkinCancer | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
46650 | \n", "No | \n", "30.90 | \n", "No | \n", "No | \n", "No | \n", "30.0 | \n", "0.0 | \n", "Yes | \n", "Female | \n", "70-74 | \n", "White | \n", "Yes | \n", "No | \n", "Poor | \n", "7.0 | \n", "Yes | \n", "No | \n", "Yes | \n", "
305695 | \n", "No | \n", "23.75 | \n", "No | \n", "Yes | \n", "No | \n", "0.0 | \n", "0.0 | \n", "No | \n", "Male | \n", "45-49 | \n", "White | \n", "No | \n", "Yes | \n", "Excellent | \n", "6.0 | \n", "Yes | \n", "Yes | \n", "No | \n", "
17353 | \n", "No | \n", "34.70 | \n", "No | \n", "No | \n", "No | \n", "0.0 | \n", "2.0 | \n", "No | \n", "Female | \n", "70-74 | \n", "White | \n", "No | \n", "No | \n", "Good | \n", "7.0 | \n", "No | \n", "No | \n", "Yes | \n", "
154614 | \n", "No | \n", "26.37 | \n", "Yes | \n", "No | \n", "No | \n", "0.0 | \n", "0.0 | \n", "Yes | \n", "Female | \n", "80 or older | \n", "Black | \n", "Yes | \n", "No | \n", "Fair | \n", "4.0 | \n", "No | \n", "No | \n", "No | \n", "
146811 | \n", "No | \n", "18.79 | \n", "No | \n", "No | \n", "No | \n", "0.0 | \n", "5.0 | \n", "No | \n", "Female | \n", "18-24 | \n", "Other | \n", "No | \n", "Yes | \n", "Very good | \n", "6.0 | \n", "No | \n", "No | \n", "No | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
224078 | \n", "No | \n", "24.13 | \n", "Yes | \n", "No | \n", "No | \n", "0.0 | \n", "0.0 | \n", "No | \n", "Female | \n", "45-49 | \n", "White | \n", "No | \n", "No | \n", "Very good | \n", "8.0 | \n", "No | \n", "No | \n", "No | \n", "
14534 | \n", "No | \n", "22.32 | \n", "Yes | \n", "No | \n", "No | \n", "0.0 | \n", "0.0 | \n", "No | \n", "Female | \n", "50-54 | \n", "White | \n", "No | \n", "Yes | \n", "Excellent | \n", "5.0 | \n", "No | \n", "No | \n", "No | \n", "
156850 | \n", "No | \n", "23.78 | \n", "Yes | \n", "No | \n", "No | \n", "2.0 | \n", "0.0 | \n", "No | \n", "Female | \n", "35-39 | \n", "Black | \n", "No | \n", "Yes | \n", "Very good | \n", "6.0 | \n", "No | \n", "No | \n", "No | \n", "
221285 | \n", "No | \n", "26.52 | \n", "No | \n", "No | \n", "No | \n", "0.0 | \n", "0.0 | \n", "No | \n", "Female | \n", "65-69 | \n", "Hispanic | \n", "Yes | \n", "Yes | \n", "Good | \n", "8.0 | \n", "No | \n", "No | \n", "No | \n", "
16625 | \n", "No | \n", "23.57 | \n", "No | \n", "No | \n", "No | \n", "0.0 | \n", "0.0 | \n", "No | \n", "Male | \n", "40-44 | \n", "White | \n", "No | \n", "Yes | \n", "Good | \n", "7.0 | \n", "No | \n", "No | \n", "No | \n", "
255836 rows × 18 columns
\n", "\n", " | PhysicalHealth | \n", "
---|---|
46650 | \n", "30.0 | \n", "
305695 | \n", "0.0 | \n", "
17353 | \n", "0.0 | \n", "
154614 | \n", "0.0 | \n", "
146811 | \n", "0.0 | \n", "
... | \n", "... | \n", "
224078 | \n", "0.0 | \n", "
14534 | \n", "0.0 | \n", "
156850 | \n", "2.0 | \n", "
221285 | \n", "0.0 | \n", "
16625 | \n", "0.0 | \n", "
255836 rows × 1 columns
\n", "\n", " | HeartDisease | \n", "BMI | \n", "Smoking | \n", "AlcoholDrinking | \n", "Stroke | \n", "PhysicalHealth | \n", "MentalHealth | \n", "DiffWalking | \n", "Sex | \n", "AgeCategory | \n", "Race | \n", "Diabetic | \n", "PhysicalActivity | \n", "GenHealth | \n", "SleepTime | \n", "Asthma | \n", "KidneyDisease | \n", "SkinCancer | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
146589 | \n", "No | \n", "19.45 | \n", "No | \n", "No | \n", "No | \n", "1.0 | \n", "0.0 | \n", "Yes | \n", "Male | \n", "25-29 | \n", "White | \n", "No | \n", "Yes | \n", "Good | \n", "12.0 | \n", "No | \n", "No | \n", "No | \n", "
216017 | \n", "No | \n", "26.36 | \n", "No | \n", "No | \n", "No | \n", "0.0 | \n", "0.0 | \n", "No | \n", "Female | \n", "40-44 | \n", "White | \n", "No | \n", "Yes | \n", "Very good | \n", "7.0 | \n", "No | \n", "No | \n", "No | \n", "
19624 | \n", "No | \n", "24.59 | \n", "Yes | \n", "No | \n", "No | \n", "0.0 | \n", "0.0 | \n", "Yes | \n", "Male | \n", "55-59 | \n", "White | \n", "No | \n", "Yes | \n", "Good | \n", "6.0 | \n", "No | \n", "No | \n", "No | \n", "
65923 | \n", "No | \n", "23.44 | \n", "Yes | \n", "No | \n", "No | \n", "0.0 | \n", "20.0 | \n", "No | \n", "Female | \n", "60-64 | \n", "Asian | \n", "No | \n", "Yes | \n", "Very good | \n", "6.0 | \n", "No | \n", "No | \n", "No | \n", "
63362 | \n", "No | \n", "31.32 | \n", "No | \n", "No | \n", "No | \n", "0.0 | \n", "2.0 | \n", "No | \n", "Female | \n", "45-49 | \n", "White | \n", "No | \n", "No | \n", "Very good | \n", "6.0 | \n", "Yes | \n", "No | \n", "No | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
252474 | \n", "No | \n", "42.37 | \n", "No | \n", "No | \n", "No | \n", "1.0 | \n", "5.0 | \n", "No | \n", "Female | \n", "18-24 | \n", "White | \n", "No | \n", "Yes | \n", "Good | \n", "8.0 | \n", "Yes | \n", "No | \n", "No | \n", "
147913 | \n", "No | \n", "32.08 | \n", "Yes | \n", "No | \n", "No | \n", "0.0 | \n", "0.0 | \n", "No | \n", "Male | \n", "40-44 | \n", "White | \n", "No | \n", "Yes | \n", "Excellent | \n", "8.0 | \n", "No | \n", "No | \n", "No | \n", "
244674 | \n", "No | \n", "31.28 | \n", "No | \n", "No | \n", "No | \n", "3.0 | \n", "0.0 | \n", "No | \n", "Female | \n", "50-54 | \n", "White | \n", "Yes | \n", "Yes | \n", "Good | \n", "7.0 | \n", "No | \n", "No | \n", "Yes | \n", "
215373 | \n", "No | \n", "31.65 | \n", "No | \n", "No | \n", "No | \n", "0.0 | \n", "0.0 | \n", "No | \n", "Male | \n", "45-49 | \n", "White | \n", "No | \n", "Yes | \n", "Very good | \n", "8.0 | \n", "No | \n", "No | \n", "No | \n", "
179461 | \n", "No | \n", "27.37 | \n", "No | \n", "No | \n", "No | \n", "0.0 | \n", "0.0 | \n", "No | \n", "Male | \n", "65-69 | \n", "White | \n", "Yes | \n", "No | \n", "Good | \n", "7.0 | \n", "No | \n", "No | \n", "No | \n", "
63959 rows × 18 columns
\n", "\n", " | PhysicalHealth | \n", "
---|---|
146589 | \n", "1.0 | \n", "
216017 | \n", "0.0 | \n", "
19624 | \n", "0.0 | \n", "
65923 | \n", "0.0 | \n", "
63362 | \n", "0.0 | \n", "
... | \n", "... | \n", "
252474 | \n", "1.0 | \n", "
147913 | \n", "0.0 | \n", "
244674 | \n", "3.0 | \n", "
215373 | \n", "0.0 | \n", "
179461 | \n", "0.0 | \n", "
63959 rows × 1 columns
\n", "\n", " | BMI | \n", "PhysicalHealth | \n", "MentalHealth | \n", "SleepTime | \n", "HeartDisease_Yes | \n", "Smoking_Yes | \n", "AlcoholDrinking_Yes | \n", "Stroke_Yes | \n", "DiffWalking_Yes | \n", "Sex_Male | \n", "... | \n", "Diabetic_Yes | \n", "Diabetic_Yes (during pregnancy) | \n", "PhysicalActivity_Yes | \n", "GenHealth_Fair | \n", "GenHealth_Good | \n", "GenHealth_Poor | \n", "GenHealth_Very good | \n", "Asthma_Yes | \n", "KidneyDisease_Yes | \n", "SkinCancer_Yes | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "0.404994 | \n", "3.349099 | \n", "-0.490224 | \n", "-0.068438 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "... | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "1.0 | \n", "
1 | \n", "-0.718814 | \n", "-0.424073 | \n", "-0.490224 | \n", "-0.765508 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "... | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "1.0 | \n", "0.0 | \n", "
2 | \n", "1.002262 | \n", "-0.424073 | \n", "-0.238838 | \n", "-0.068438 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "... | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "
3 | \n", "-0.307013 | \n", "-0.424073 | \n", "-0.490224 | \n", "-2.159646 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "... | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "
4 | \n", "-1.498407 | \n", "-0.424073 | \n", "0.138242 | \n", "-0.765508 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "... | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "
5 | \n", "1.256887 | \n", "1.336741 | \n", "-0.490224 | \n", "-0.765508 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "1.0 | \n", "... | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "
6 | \n", "-0.506627 | \n", "-0.424073 | \n", "-0.490224 | \n", "-0.068438 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "... | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "
7 | \n", "-1.690161 | \n", "-0.424073 | \n", "-0.490224 | \n", "0.628631 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "... | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "
8 | \n", "-0.030384 | \n", "-0.424073 | \n", "-0.490224 | \n", "0.628631 | \n", "0.0 | \n", "1.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "... | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "
9 | \n", "-0.167127 | \n", "3.349099 | \n", "1.395175 | \n", "-0.068438 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "1.0 | \n", "... | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "
10 rows × 38 columns
\n", "