2024-09-28 10:58:24 +04:00
|
|
|
{
|
|
|
|
"cells": [
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": "<Axes: >"
|
|
|
|
},
|
2024-09-28 12:04:10 +04:00
|
|
|
"execution_count": 78,
|
2024-09-28 10:58:24 +04:00
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": "<Figure size 640x480 with 1 Axes>",
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYUAAAGFCAYAAAASI+9IAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8hTgPZAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAtTUlEQVR4nO3dd3hUVeI+8PdOSe+9QqSE3iKIICpNQAUVBRULxV5QwN19fuuuumLbtftdK7JiWwXdlRUFRaQJhBoggRAMJEBISO+ZZCaTmbm/PwZHI6FmZs7ce9/P88wDmZkM74DOm3vOvedIsizLICIiAqATHYCIiHwHS4GIiFxYCkRE5MJSICIiF5YCERG5sBSIiMiFpUBERC4sBSIicmEpEBGRC0uBiIhcWApEROTCUiAiIheWAhERubAUiIjIhaVAREQuLAUiInJhKRARkQtLgYiIXFgKRETkwlIgIiIXlgIREbmwFIiIyIWlQERELiwFIiJyYSkQEZELS4GIiFxYCkRE5MJSIK9JS0vDG2+8IToGEZ0BS0GlZs+eDUmSTrkVFBSIjkZEPswgOgB5zqRJk/Dhhx+2uy82NlZQGiJSAh4pqJi/vz8SEhLa3fR6PVasWIGMjAwEBASgW7duWLhwIWw2m+v7JEnCokWLMHnyZAQFBaFPnz7Ytm0bCgoKMHr0aAQHB2PkyJEoLCx0fU9hYSGuv/56xMfHIyQkBMOGDcPatWvPmK++vh733HMPYmNjERYWhrFjxyIn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KKrFUvCQpTuP48XVPO2
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"import pandas as pd\n",
|
|
|
|
"\n",
|
|
|
|
"df = pd.read_csv(\"../data/healthcare-dataset-stroke-data.csv\", index_col=\"id\")\n",
|
|
|
|
"\n",
|
|
|
|
"data = df.copy()\n",
|
|
|
|
"hypertension_df = data[data[\"hypertension\"] == 1]\n",
|
|
|
|
"heart_disease_df = data[data[\"heart_disease\"] == 1]\n",
|
|
|
|
"\n",
|
|
|
|
"hypertension_df.groupby([\"gender\"]).size().plot(kind='pie', y='gender', autopct='%1.0f%%')"
|
|
|
|
],
|
|
|
|
"metadata": {
|
|
|
|
"collapsed": false,
|
|
|
|
"ExecuteTime": {
|
2024-09-28 12:04:10 +04:00
|
|
|
"end_time": "2024-09-28T08:02:44.536584Z",
|
|
|
|
"start_time": "2024-09-28T08:02:44.483168Z"
|
2024-09-28 10:58:24 +04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"id": "initial_id",
|
2024-09-28 12:04:10 +04:00
|
|
|
"execution_count": 78
|
2024-09-28 10:58:24 +04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": "<Axes: >"
|
|
|
|
},
|
2024-09-28 12:04:10 +04:00
|
|
|
"execution_count": 79,
|
2024-09-28 10:58:24 +04:00
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": "<Figure size 640x480 with 1 Axes>",
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYUAAAGFCAYAAAASI+9IAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZ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t2+O6ShyCCqFCLa7ysX1ry7VdJHYhsMBN52ex/izeuBwaDopEqkUItSybXu5/pWllGiZCrGh4X2yeeySY0lJiDUdRX5EpRCBpi4p4s731mgRO7G1Xu1b8dwVg+ncJtl0FPkBlUIEafJ4+dtH65i8oNB0FJGwyEiO49+/HMQJ3TNNR5FvqRQiRHmtmxteW8bCzXtMRxEJq1ing7+M7s2vT8g1HUVQKUSEtcVVXPvKErbvrTcdRcSYXx7fhXvO66NNfAxTKRi2oKCM37y0hFq3rj8QOe6oNjz368G0TtaieqaoFAyatX43v311GQ06oCwScHROGq9efRyZ2hPaCJWCIR+uKmb8myto9OifX+TH8tql8vo1x9MuLdF0lKijUjDgrSVF3DZttZa7FjmE3MxkXvvNUDqmJ5mOElVUCmH20oJC7vnga+2OJnIYOqYn8fpvjqdrptZMCheVQhg9PXsTj8zYYDqGiKVkpyXw2jVDyWuXajpKVFAphMnD09fz7zkFpmOIWFLb1Hheufp4js5JMx3F9lQKIebz+bj3g7W6SlmkhdKT43h53HH065RuOoqtqRRC7C/vr+GlhVtNxxCxhVYJsUweN4RBXduYjmJbunQwhJ6evUmFIBJE1Q1NjH1xMRu0N3n
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"heart_disease_df.groupby([\"gender\"]).size().plot(kind='pie', y='gender', autopct='%1.0f%%')"
|
|
|
|
],
|
|
|
|
"metadata": {
|
|
|
|
"collapsed": false,
|
|
|
|
"ExecuteTime": {
|
2024-09-28 12:04:10 +04:00
|
|
|
"end_time": "2024-09-28T08:02:44.580550Z",
|
|
|
|
"start_time": "2024-09-28T08:02:44.537590Z"
|
2024-09-28 10:58:24 +04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"id": "6d10c55e8a214f5d",
|
2024-09-28 12:04:10 +04:00
|
|
|
"execution_count": 79
|
2024-09-28 10:58:24 +04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": "<Axes: ylabel='Frequency'>"
|
|
|
|
},
|
2024-09-28 12:04:10 +04:00
|
|
|
"execution_count": 80,
|
2024-09-28 10:58:24 +04:00
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": "<Figure size 640x480 with 1 Axes>",
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjIAAAGfCAYAAABFpjj0AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8hTgPZAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAnCklEQVR4nO3de3RU5b3/8c+YG4mEBAK5SUgCcqlCEMHSCHhQOHLJQQSXVS4VhNpqQwWjhWArFG8BPVJleeHUo0EWIpVTwAtHKAaIxTtooDm24SIQkASoHBISZMDM8/vD5fzOmASSYZI9T/J+rbXXYp69Z893P9lZ+fDsZ892GWOMAAAALHSJ0wUAAAD4iyADAACsRZABAADWIsgAAABrEWQAAIC1CDIAAMBaBBkAAGAtggwAALAWQQYAAFiLIAMAAKwV6uSH5+Xlac2aNfrHP/6hyMhIXXvttVq0aJF69uzp3Wbo0KEqLCz0ed8vf/lLLV26tEGf4fF4dOTIEUVHR8vlcgW0fgAA0DSMMTp16pSSk5N1ySX1j7u4nHzW0siRI3X77bfrmmuu0bfffqsHH3xQxcXF+uKLL3TppZdK+i7I9OjRQw8//LD3fVFRUWrXrl2DPuPw4cNKSUlpkvoBAEDTOnTokDp37lzvekdHZDZs2ODzetmyZYqPj9eOHTt03XXXedujoqKUmJjo12dER0dL+q4jGhp+AACAsyorK5WSkuL9O14fR4PMD1VUVEiSOnTo4NP+6quvasWKFUpMTNSYMWP00EMPKSoqqs59uN1uud1u7+tTp05Jktq1a0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rLli1q27atd+nVq5ck+VyiAgAgmDEiY6kxY8YoNTVVL774opKTk+XxeNS7d2+dPXu2Qe///vLTokWLaq0L5JPFAQBoSgQZC3399dcqKSnRiy++qCFDhkiStm3b5l3fs2dPrVixQm63WxEREZKkTz/91GcfV199tf785z8rLS1NoaGcBgAAO3FpyULt27dXXFyc/vjHP2rv3r3avHmzcnJyvOsnTpwoj8ejX/ziF/r73/+ujRs36t///d8l/f8njmdnZ+vEiROaMGGCPv30U+3bt08bN27UnXfeqZqaGkeOCwCAxuK/4nUI9pndl1xyiVatWqV7771XvXv3Vs+ePbVkyRINHTpUktSuXTu99dZbuueee3TVVVepT58+mjdvniZOnOidN5OcnKz3339fc+bM0Y033ii3263U1FSNHDmSh0MCAKxBkLHU8OHD9cUXX/i0GWO8/7722mu1c+dO7+tXX31VYWFh6tKli7ete/fuWrNmTdMXCwBAEyHItFDLly9X165dddlll2nnzp3e74iJjIx0ujQAAAKGINNClZeXa968eSovL1dSUpJuvfVWPfbYY06XBQBAQBFkWqjZs2dr9uzZTpcBAECTYlYnAACwFkFGvpNkUT/6CQAQbFp1kAkLC5MknT592uFK7PB9P33fbwAAOK1Vz5EJCQlRbGysjh07JkmKioryfmEc/j9jjE6fPq1jx44pNjZWISEhTpcEAICkVh5kJCkxMVGSvGEG9YuNjfX2FwAAwaDVBxmXy6WkpCTFx8fr3LlzTpcTtMLCwhiJAQAEnVYfZL4XEhLCH2oAACzTqif7AgAAuxFkAACAtQgyAADAWgQZAABgLYIMAACwFkEGAABYiyADAACsRZABAADWIsgAAABrEWQAAIC1CDIAAMBaBBkAAGAtggwAALAWQQYAAFiLIAMAAKxFkAEAANYiyAAAAGsRZAAAgLUIMgAAwFoEGQAAYC2CDAAAsBZBBgAAWIsgAwAArEWQAQAA1iLIAAAAaxFkAACAtUKdLgAAADgjLXd9ne0HFmY1cyX+Y0QGAABYiyADAACsRZABAADWIsgAAABrEWQAAIC1CDIAAMBaBBkAAGAtggwAALAWQQYAAFiLIAMAAKzlaJDJy8vTNddco+joaMXHx+vmm29WSUmJzzZnzpxRdna24uLi1LZtW91yyy06evSoQxUDAIBg4miQKSwsVHZ2tj766CNt2rRJ586d04033qjq6mrvNvfdd5/eeustrV69WoWFhTpy5IjGjx/vYNUAACBYOPrQyA0bNvi8XrZsmeLj47Vjxw5dd911qqio0EsvvaSVK1fqhhtukCTl5+frRz/6kT766CP95Cc/caJsAAAQJIJqjkxFRYUkqUOHDpKkHTt26Ny5cxo+fLh3m169eqlLly768MMP69yH2+1WZWWlzwIAAFqmoAkyHo9Hs2bN0qBBg9S7d29JUnl5ucLDwxUbG+uzbUJCgsrLy+vcT15enmJiYrxLSkpKU5cOAAAcEjRBJjs7W8XFxVq1atVF7Wfu3LmqqKjwLocOHQpQhQAAINg4OkfmezNmzNDbb7+t9957T507d/a2JyYm6uzZszp58qTPqMzRo0eVmJhY574iIiIUERHR1CUDAIAg4OiIjDFGM2bM0Nq1a7V582alp6f7rO/fv7/CwsJUUFDgbSspKVFpaakyMzObu1wAABBkHB2Ryc7O1sqVK/XGG28oOjraO+8lJiZGkZGRiomJ0fTp05WTk6MOHTqoXbt2+vWvf63MzEzuWAIAAM4GmRdeeEGSNHToUJ/2/Px8TZ06VZL0hz/8QZdccoluueUWud1ujRgxQs8//3wzVwoAAIKRo0HGGHPBbdq0aaPnnntOzz33XDNUBAAAbBI0dy0BAAA0FkEGAABYiyADAACsRZABAADWIsgAAABrEWQAAIC1CDIAAMBaBBkAAGCtoHhoJAAATkrLXV9n+4GFWc1cCRqLERkAAGAtggwAALAWQQYAAFiLIAMAAKxFkAEAANYiyAAAAGsRZAAAgLUIMgAAwFoEGQAAYC2CDAAAsBZBBgAAWIsgAwAArEWQAQAA1iLIAAAAaxFkAACAtQgyAADAWgQZAABgLYIMAACwFkEGAABYiyADAACsRZABAADWIsgAAABrEWQ
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"hypertension_df.plot.hist(column=[\"age\"], bins=80)"
|
|
|
|
],
|
|
|
|
"metadata": {
|
|
|
|
"collapsed": false,
|
|
|
|
"ExecuteTime": {
|
2024-09-28 12:04:10 +04:00
|
|
|
"end_time": "2024-09-28T08:02:44.758435Z",
|
|
|
|
"start_time": "2024-09-28T08:02:44.580550Z"
|
2024-09-28 10:58:24 +04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"id": "23f1ef88fb0e184d",
|
2024-09-28 12:04:10 +04:00
|
|
|
"execution_count": 80
|
2024-09-28 10:58:24 +04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": "<Axes: ylabel='Frequency'>"
|
|
|
|
},
|
2024-09-28 12:04:10 +04:00
|
|
|
"execution_count": 81,
|
2024-09-28 10:58:24 +04:00
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": "<Figure size 640x480 with 1 Axes>",
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjIAAAGdCAYAAAAIbpn/AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8hTgPZAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAnh0lEQVR4nO3de3hU1b3/8c+QeyQXCOQmgQTkUgwggtAIeFRyhMChcnmsItZwOXq0oQWi5aIVSq0G9chRWwqtR0J5lFI5B/BWoRAgFuUiSKDUNhDkpiSAUBISSoKZ9fvDw/wYkyAZJplZw/v1PPt52Gvvmfmu7Dj5uPfaezmMMUYAAAAWauHrAgAAADxFkAEAANYiyAAAAGsRZAAAgLUIMgAAwFoEGQAAYC2CDAAAsBZBBgAAWCvY1wU0NafTqWPHjikqKkoOh8PX5QAAgCtgjNHZs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y1HD16tClLBwAAPuTTIGOM0eTJk7Vq1Spt2LBBaWlpbtv79OmjkJAQFRQUuNqKi4t15MgRZWRk1PueYWFhio6OdlsAAEBg8umlpZycHC1btkxvvfWWoqKiXONeYmJiFBERoZiYGE2aNEm5ublq3bq1oqOj9aMf/UgZGRncsQQAAHwbZBYuXChJuv32293a8/PzNX78eEnSf/3Xf6lFixYaM2aMqqurNWTIEP36179u5koBAIA/8mmQMcZ86z7h4eFasGCBFixY0AwVAQAAm/jFYF8AAABPEGQ
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"heart_disease_df.plot.hist(column=[\"age\"], bins=80)"
|
|
|
|
],
|
|
|
|
"metadata": {
|
|
|
|
"collapsed": false,
|
|
|
|
"ExecuteTime": {
|
2024-09-28 12:04:10 +04:00
|
|
|
"end_time": "2024-09-28T08:02:44.934038Z",
|
|
|
|
"start_time": "2024-09-28T08:02:44.760451Z"
|
2024-09-28 10:58:24 +04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"id": "88e4c6923d602999",
|
2024-09-28 12:04:10 +04:00
|
|
|
"execution_count": 81
|
2024-09-28 10:58:24 +04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": "<Axes: >"
|
|
|
|
},
|
2024-09-28 12:04:10 +04:00
|
|
|
"execution_count": 82,
|
2024-09-28 10:58:24 +04:00
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": "<Figure size 640x480 with 1 Axes>",
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAasAAAGFCAYAAABDt9wrAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMiwgaHR0cHM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DJbeqjqFEJrlNJh4JvBxPsuOUpbBYnNwywebKSitVJZBXDgpq7py2GHJNCjPV51ECE1y6gy8Ef4wbx2NVx2FY4Xl3PnxVhwyh2CjU+9llZiYyCuvvFLfL6NO6t9lclohzsCJjo9iZjHvUCvVUaqs2X+CN1YfUB1DnKfzKqupU6ei0+nQ6XR4e3uTnJzMk08+ic125tU6N27cyE033VTnoH/IyMhAp9Oxbds2t+3zgqWvhjUvqU4hhGYtb3YXD9dyqY+G9Mr3++T8VSNz3iOrYcOGkZWVxf79+7nvvvuYM2cOL7zwwmnbVVa6jgtHRETg6+tb96RaU5IL/3cTOGUNHSFqsj7+Jmam9VQdo0ZWu5O7Ptkqqww3IuddViaTiejoaJo3b87MmTMZPHgwX3zxBVOnTuXKK6/kmWeeITY2ljZt2gDVDwNed911TJgwodr+rFYr4eHhvPfeewAsX76cvn37EhwcTFhYGCNHjuTAgVND9hYtWgDQrVs3dDodl112WdXn3nrrLdq1a4fZbKZt27a8/vrr5/vl1Y7TCUtvgZLs+tm/EI3cb/HXMXH/ZapjnFV6bilPfy33XzUWxrruwMfHh7y8PABWrlxJYGAg3333XY3bTpo0iXHjxlFSUoK/vz8AK1asoKysjLFjxwJQWlrKvffeS+fOnSkpKeHxxx9n7NixbNu2Db1ezy+//ELPnj35/vv
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"heart_disease_df.groupby([\"work_type\"]).size().plot(kind='pie', y='work_type', autopct='%1.2f%%')"
|
|
|
|
],
|
|
|
|
"metadata": {
|
|
|
|
"collapsed": false,
|
|
|
|
"ExecuteTime": {
|
2024-09-28 12:04:10 +04:00
|
|
|
"end_time": "2024-09-28T08:02:44.990835Z",
|
|
|
|
"start_time": "2024-09-28T08:02:44.935044Z"
|
2024-09-28 10:58:24 +04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"id": "d420467eca90d9e3",
|
2024-09-28 12:04:10 +04:00
|
|
|
"execution_count": 82
|
2024-09-28 10:58:24 +04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": "<Axes: >"
|
|
|
|
},
|
2024-09-28 12:04:10 +04:00
|
|
|
"execution_count": 83,
|
2024-09-28 10:58:24 +04:00
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": "<Figure size 640x480 with 1 Axes>",
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAaYAAAGFCAYAAAC2SVebAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8hTgPZAAAACXBIWXMAAA9hAAAPYQGoP6dpAABFA0lEQVR4nO3dd3hUZcLG4d/MpHcSUkkChNCLNEEEUSmCKNIUVCwooKKuYG+rgquuddV1P127WHBta8OCioLKqoQqSG/SQk0C6W3m+yMajARIyEzeMzPPfV25gMmZM08mzDxzzvuec2wul8uFiIiIRdhNBxAREfkjFZOIiFiKiklERCxFxSQiIpaiYhIREUtRMYmIiKWomERExFJUTCIiYikqJhERsRQVk4iIWIqKSURELEXFJCIilqJiEhERS1ExiYiIpaiYRETEUlRMIiJiKSomERGxFBWTiIhYiopJREQsRcUkIiKWomISERFLUTGJiIilqJhERMRSVEwiImIpKiYREbEUFZOIiFiKiklERCxFxSQiIpaiYhIREUtRMYmIiKWomERExFJUTCIiYikqJhERsRQVk4iIWIqKSURELEXFJCIilqJiEhERS1ExiYiIpaiYRETEUlRMIiJiKSomERGxFBWTiIhYiopJREQsRcUkIiKWomISERFLCTAdQMQYpxNK8qA4t5avPCgvBGclOCt++6qs+afdAQEhEBQOgaEQGPbbV2jVbcFREBEPEUkQkVC1vIgck4pJfFdZEeRt/e3r19++f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hl9RMTXE/Icgd4vpFCIe4bI5uD/0JtYUhJmOYtzdH/7CgaJy0zEa3YQ
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"hypertension_df.groupby([\"work_type\"]).size().plot(kind='pie', y='work_type', autopct='%1.2f%%')"
|
|
|
|
],
|
|
|
|
"metadata": {
|
|
|
|
"collapsed": false,
|
|
|
|
"ExecuteTime": {
|
2024-09-28 12:04:10 +04:00
|
|
|
"end_time": "2024-09-28T08:02:45.044028Z",
|
|
|
|
"start_time": "2024-09-28T08:02:44.991842Z"
|
2024-09-28 10:58:24 +04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"id": "2e3a4b8565a1290",
|
2024-09-28 12:04:10 +04:00
|
|
|
"execution_count": 83
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": "[<matplotlib.lines.Line2D at 0x18576a5a450>,\n <matplotlib.lines.Line2D at 0x18576be13a0>]"
|
|
|
|
},
|
|
|
|
"execution_count": 84,
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": "<Figure size 640x480 with 1 Axes>",
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAh8AAAGgCAYAAAAKKQXsAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8hTgPZAAAACXBIWXMAAA9hAAAPYQGoP6dpAACEm0lEQVR4nO29eZwkdZnu+0TutW/dtXVVdTfN0iu9gwgqKgqI7CKNqODMmbl60CNyj86go6POOO2cM3dmjnMZnZk7IzoCDYwsgopiI40o0As00AtNr3R1V9e+ZG25Rtw/fvGLiMyK3CMrs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FTc6tmBreFrE3wfoWgcY9PiuOYaPxqqfBiajMwJ30dOlY/vf//7GBsbw+WXX462tjbj4+GHHzaO+Yd/+Ad89KMfxc0334z3vve9aG1txWOPPeb4iRNCCCFnI9GYBp+iiwy3qGZcp26HAhXjYVOUyIVyPo8LdRVeNOqVj5E5EDSWU+VD07SMxwQCAdx3332477778j4pQgghZL4StrZdznk/cPJltIX7calrP8ZDm43jZMulucYPRVHQUCVGcudC24W7XQghhJAyIhqztF0CdcCFHwcAbHE/l9B2GdAzPppr/ACAxirx+awznBJCCCGkuETjlmkXtw/YeAcA4MOu3YgEzV1pfUFZ+QgAABpl5YPigxBCCCG5EImr8Cl65cPjA1rXoLtiBXxKHJ3dPzOOk+mmzbWi4iGnXeZCyinFByGEEFJGRGMWz4dbCIvXm68DAKzoeRzQ/Zf9QdPzAQCNVfqoLSsfhBBCCMmFSFyDT4oPjxAU77RdjUnNj6bQO8D
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"df = data[['age', 'hypertension', 'heart_disease']].groupby(['age']).agg(\n",
|
|
|
|
" hypertension=pd.NamedAgg(column=\"hypertension\", aggfunc=\"sum\"),\n",
|
|
|
|
" heart_disease=pd.NamedAgg(column=\"heart_disease\", aggfunc=\"sum\")\n",
|
|
|
|
")\n",
|
|
|
|
"plt.plot(df)"
|
|
|
|
],
|
|
|
|
"metadata": {
|
|
|
|
"collapsed": false,
|
|
|
|
"ExecuteTime": {
|
|
|
|
"end_time": "2024-09-28T08:02:45.130251Z",
|
|
|
|
"start_time": "2024-09-28T08:02:45.044028Z"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"id": "2ede225d97b8970d",
|
|
|
|
"execution_count": 84
|
2024-09-28 10:58:24 +04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"outputs": [],
|
|
|
|
"source": [],
|
|
|
|
"metadata": {
|
|
|
|
"collapsed": false,
|
|
|
|
"ExecuteTime": {
|
2024-09-28 12:04:10 +04:00
|
|
|
"end_time": "2024-09-28T08:02:45.133361Z",
|
|
|
|
"start_time": "2024-09-28T08:02:45.131602Z"
|
2024-09-28 10:58:24 +04:00
|
|
|
}
|
|
|
|
},
|
2024-09-28 12:04:10 +04:00
|
|
|
"id": "4cd54caa8307810e",
|
|
|
|
"execution_count": 84
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"outputs": [],
|
|
|
|
"source": [],
|
|
|
|
"metadata": {
|
|
|
|
"collapsed": false,
|
|
|
|
"ExecuteTime": {
|
|
|
|
"end_time": "2024-09-28T08:02:45.136290Z",
|
|
|
|
"start_time": "2024-09-28T08:02:45.134368Z"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"id": "1f11f16909c94",
|
|
|
|
"execution_count": 84
|
2024-09-28 10:58:24 +04:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"metadata": {
|
|
|
|
"kernelspec": {
|
|
|
|
"display_name": "Python 3",
|
|
|
|
"language": "python",
|
|
|
|
"name": "python3"
|
|
|
|
},
|
|
|
|
"language_info": {
|
|
|
|
"codemirror_mode": {
|
|
|
|
"name": "ipython",
|
|
|
|
"version": 2
|
|
|
|
},
|
|
|
|
"file_extension": ".py",
|
|
|
|
"mimetype": "text/x-python",
|
|
|
|
"name": "python",
|
|
|
|
"nbconvert_exporter": "python",
|
|
|
|
"pygments_lexer": "ipython2",
|
|
|
|
"version": "2.7.6"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"nbformat": 4,
|
|
|
|
"nbformat_minor": 5
|
|
|
|
}
|