ium_434766/lab2.ipynb

262 lines
137 KiB
Plaintext
Raw Normal View History

2021-03-20 20:04:51 +01:00
{
"metadata": {
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.5-final"
},
"orig_nbformat": 2,
"kernelspec": {
"name": "python3",
"display_name": "Python 3",
"language": "python"
}
},
"nbformat": 4,
"nbformat_minor": 2,
"cells": [
{
"cell_type": "code",
2021-03-28 20:50:30 +02:00
"execution_count": 31,
2021-03-20 20:04:51 +01:00
"metadata": {},
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Whole dataset size: 61320\nTrain dataset size: 35340\nTest dataset size: 11784\nValidate dataset size: 11784\n id gender age hypertension heart_disease \\\ncount 5110.000000 5110 5110.000000 5110.000000 5110.000000 \nunique NaN 3 NaN NaN NaN \ntop NaN Female NaN NaN NaN \nfreq NaN 2994 NaN NaN NaN \nmean 36517.829354 NaN 43.226614 0.097456 0.054012 \nstd 21161.721625 NaN 22.612647 0.296607 0.226063 \nmin 67.000000 NaN 0.080000 0.000000 0.000000 \n25% 17741.250000 NaN 25.000000 0.000000 0.000000 \n50% 36932.000000 NaN 45.000000 0.000000 0.000000 \n75% 54682.000000 NaN 61.000000 0.000000 0.000000 \nmax 72940.000000 NaN 82.000000 1.000000 1.000000 \n\n ever_married work_type Residence_type avg_glucose_level bmi \\\ncount 5110 5110 5110 5110.000000 4909.000000 \nunique 2 5 2 NaN NaN \ntop Yes Private Urban NaN NaN \nfreq 3353 2925 2596 NaN NaN \nmean NaN NaN NaN 106.147677 28.893237 \nstd NaN NaN NaN 45.283560 7.854067 \nmin NaN NaN NaN 55.120000 10.300000 \n25% NaN NaN NaN 77.245000 23.500000 \n50% NaN NaN NaN 91.885000 28.100000 \n75% NaN NaN NaN 114.090000 33.100000 \nmax NaN NaN NaN 271.740000 97.600000 \n\n smoking_status stroke \ncount 5110 5110.000000 \nunique 4 NaN \ntop never smoked NaN \nfreq 1892 NaN \nmean NaN 0.048728 \nstd NaN 0.215320 \nmin NaN 0.000000 \n25% NaN 0.000000 \n50% NaN 0.000000 \n75% NaN 0.000000 \nmax NaN 1.000000 \n"
]
}
],
"source": [
2021-03-28 20:50:30 +02:00
"import kaggle\n",
"import os\n",
2021-03-20 20:04:51 +01:00
"import numpy as np\n",
"import pandas as pd\n",
"from sklearn.preprocessing import MinMaxScaler\n",
"from sklearn.model_selection import train_test_split\n",
"\n",
"def downloadCSV():\n",
2021-03-28 20:50:30 +02:00
" kaggle.api.authenticate()\n",
" kaggle.api.dataset_download_files('fedesoriano/stroke-prediction-dataset', path='.', unzip=True)\n",
" data = pd.read_csv('healthcare-dataset-stroke-data.csv')\n",
2021-03-20 20:04:51 +01:00
"\n",
"def dropNaN():\n",
" data = pd.read_csv('healthcare-dataset-stroke-data.csv')\n",
" data = data.dropna()\n",
" return data\n",
"\n",
"def NormalizeData(data):\n",
" data = data.astype({\"age\": np.int64})\n",
" for col in data.columns:\n",
" if data[col].dtype == object: # STRINGS TO LOWERCASE\n",
" data[col] = data[col].str.lower()\n",
" if data[col].dtype == np.float64: # FLOATS TO VALUES IN [ 0, 1]\n",
" dataReshaped = data[col].values.reshape(-1,1)\n",
" scaler = MinMaxScaler(feature_range=(0, 1))\n",
" data[col] = scaler.fit_transform(dataReshaped)\n",
" if col == 'ever_married': # YES/NO TO 1/0\n",
" data[col] = data[col].map(dict(yes=1, no=0))\n",
" if col == 'smoking_status':\n",
" data[col] = data[col].str.replace(\" \", \"_\")\n",
" if col == 'work_type':\n",
" data[col] = data[col].str.replace(\"-\", \"_\")\n",
" return data\n",
"\n",
"def saveToCSV(data1,data2,data3):\n",
" data1.to_csv(\"data_train.csv\", index=False)\n",
" data2.to_csv(\"data_test.csv\",index=False)\n",
" data3.to_csv(\"data_val.csv\",index=False)\n",
"\n",
"def describeDataset(dt, dt2, dv):\n",
" data = pd.read_csv('healthcare-dataset-stroke-data.csv')\n",
" print(\"Whole dataset size: \", data.size)\n",
" print(\"Train dataset size: \", dt.size)\n",
" print(\"Test dataset size: \", dt2.size)\n",
" print(\"Validate dataset size: \", dv.size)\n",
" print(data.describe(include='all'))\n",
"\n",
"\n",
"downloadCSV()\n",
"data = dropNaN()\n",
"data = NormalizeData(data)\n",
"\n",
"data_train, data_test = train_test_split(data, test_size=0.2, random_state=1)\n",
"data_train, data_val = train_test_split(data_train, test_size=0.25, random_state=1) ## Twice to get 0.6, 0.2, 0.2\n",
"saveToCSV(data_train,data_test,data_val)\n",
"describeDataset(data_train,data_test,data_val)\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": 27,
"metadata": {},
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"<AxesSubplot:>"
]
},
"metadata": {},
"execution_count": 27
},
{
"output_type": "display_data",
"data": {
"text/plain": "<Figure size 432x288 with 1 Axes>",
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n<!-- Created with matplotlib (https://matplotlib.org/) -->\r\n<svg height=\"310.257188pt\" version=\"1.1\" viewBox=\"0 0 381.65 310.257188\" width=\"381.65pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n <metadata>\r\n <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n <cc:Work>\r\n <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n <dc:date>2021-03-20T19:59:50.630059</dc:date>\r\n <dc:format>image/svg+xml</dc:format>\r\n <dc:creator>\r\n <cc:Agent>\r\n <dc:title>Matplotlib v3.3.2, https://matplotlib.org/</dc:title>\r\n </cc:Agent>\r\n </dc:creator>\r\n </cc:Work>\r\n </rdf:RDF>\r\n </metadata>\r\n <defs>\r\n <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n </defs>\r\n <g id=\"figure_1\">\r\n <g id=\"patch_1\">\r\n <path d=\"M -0 310.257188 \r\nL 381.65 310.257188 \r\nL 381.65 0 \r\nL -0 0 \r\nz\r\n\" style=\"fill:none;\"/>\r\n </g>\r\n <g id=\"axes_1\">\r\n <g id=\"patch_2\">\r\n <path d=\"M 39.65 224.64 \r\nL 374.45 224.64 \r\nL 374.45 7.2 \r\nL 39.65 7.2 \r\nz\r\n\" style=\"fill:#ffffff;\"/>\r\n </g>\r\n <g id=\"patch_3\">\r\n <path clip-path=\"url(#p8ec1192c17)\" d=\"M 56.39 224.64 \r\nL 89.87 224.64 \r\nL 89.87 17.554286 \r\nL 56.39 17.554286 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_4\">\r\n <path clip-path=\"url(#p8ec1192c17)\" d=\"M 123.35 224.64 \r\nL 156.83 224.64 \r\nL 156.83 166.656 \r\nL 123.35 166.656 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_5\">\r\n <path clip-path=\"url(#p8ec1192c17)\" d=\"M 190.31 224.64 \r\nL 223.79 224.64 \r\nL 223.79 176.001407 \r\nL 190.31 176.001407 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_6\">\r\n <path clip-path=\"url(#p8ec1192c17)\" d=\"M 257.27 224.64 \r\nL 290.75 224.64 \r\nL 290.75 178.125363 \r\nL 257.27 178.125363 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_7\">\r\n <path clip-path=\"url(#p8ec1192c17)\" d=\"M 324.23 224.64 \r\nL 357.71 224.64 \r\nL 357.71 223.082432 \r\nL 324.23 223.082432 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"matplotlib.axis_1\">\r\n <g id=\"xtick_1\">\r\n <g id=\"line2d_1\">\r\n <defs>\r\n <path d=\"M 0 0 \r\nL 0 3.5 \r\n\" id=\"m367ef2167c\" style=\"stroke:#000000;stroke-width:0.8;\"/>\r\n </defs>\r\n <g>\r\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"73.13\" xlink:href=\"#m367ef2167c\" y=\"224.64\"/>\r\n </g>\r\n </g>\r\n <g id=\"text_1\">\r\n <!-- Private -->\r\n <g transform=\"translate(75.889375 266.504063)rotate(-90)scale(0.1 -0.1)\">\r\n <defs>\r\n <path d=\"M 19.671875 64.796875 \r\nL 19.671875 37.40625 \r\nL 32.078125 37.40625 \r\nQ 38.96875 37.40625 42.71875 40.96875 \r\nQ 46.484375 44.53125 46.484375 51.125 \r\nQ 46.484375 57.671875 42.71875 61.234375 \r\nQ 38.96875 64.796875 32.078125 64.796875 \r\nz\r\nM 9.8125 72.90625 \r\nL 32.078125 72.90625 \r\nQ 44.34375 72.90625 50.609375 67.359375 \r\nQ 56.890625 61.8125 56.890625 51.125 \r\nQ 56.890625 40.328125 50.609375 34.8125 \r\nQ 44.34375 29.296875 32.078125 29.296875 \r\nL 19.671875 29.296875 \r\nL 19.671875 0 \r\nL 9.8125 0 \r\nz\r\n\" id=\"DejaVuSans-80\"/>\r\n <path d=\"M 41.109375 46.296875 \r\nQ 39.59375 47.171875 37.8125 47.578125 \r\nQ 36.03125 48 33.890625 48 \r\nQ 26.265625 48 22.1875 43.046875 \r\nQ 18.109375 38.09375 18.109375 28.8125 \r\nL 18.109375 0 \r\nL 9.078125 0 \r\nL 9.078125 54.6875 \r\nL 18.109375 54.6875 \r\nL 18.109375 46.1875 \r\nQ 20.953125 51.171875 25.484375 53.578125 \r\nQ 30.03125 56 36.53125 56 \r\nQ 37.453125 56 38.578125 55.875 \r\nQ 39.703125 55.765625 41.0625 55.515625 \r\nz\r\n\" id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iF0qZ+RGRFQkoR8RUZGEfkRERRL6EREVSehHRFQkoR8RUZGEfkRERRL6EREVSehHRFQkoR8RUZGEfkRERRL6EREVSehHRFQkoR8RUZGEfkRERRL6EREVSehHRFQkoR8RUZGEfkRERRL6EREVSehHRFQkoR8RUZGEfkRERRL6EREVSehHRFQkoR8RUZGEfkRERcYMfUlXSlov6a6OtoMk3SDp/vLzwI7HLpK0StJ9kk7uaD9e0sry2CWStOtfTkREjGY8e/pXA7OHtV0I3Gh7BnBjWUbSUcBc4OiyzaWSJpRtLgPmAzPKbfhzRkTEbjZm6Nu+GfjpsOY5wMJyfyFwakf7ItubbD8ArAJmSZoMTLJ9q20D13RsExERPbKjffqH2l4HUH4eUtqnAKs71ltT2qaU+8PbIyKih3b1gdxu/fQepb37k0jzJQ1KGtywYcMuKy4ionY7GvoPly4bys/1pX0NMK1jvanA2tI+tUt7V7Yvtz3T9syBgYEdLDEiIobb0dBfAswr9+cB13a0z5U0UdLhNAdsl5cuoI2STiijds7u2CYiInpk77FWkPQZ4AXAwZLWAO8G3g8slnQO8BBwOoDtuyUtBu4BNgPn295Snuo8mpFA+wHXlVtERPTQmKFv+8wRHjpphPUXAAu6tA8Cx2xXdRERsUvljNyIiIok9CMiKpLQj4ioSEI/IqIiCf2IiIok9CMiKpLQj4ioSEI/IqIiY56cFY8f0y/8atslAPDg+1/WdgkR1cqefkRERRL6EREVSehHRFQkoR8RUZGEfkRERRL6EREVSehHRFQkoR8RUZGcnBVVyolqUavs6UdEVCR7+hGVy7eeumRPPyKiIgn9iIi
},
"metadata": {
"needs_background": "light"
}
}
],
"source": [
"data_orginal = pd.read_csv('healthcare-dataset-stroke-data.csv')\n",
"data_orginal['work_type'].value_counts().plot(kind=\"bar\")\n"
]
},
{
"cell_type": "code",
"execution_count": 23,
"metadata": {},
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"<AxesSubplot:>"
]
},
"metadata": {},
"execution_count": 23
},
{
"output_type": "display_data",
"data": {
"text/plain": "<Figure size 432x288 with 1 Axes>",
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n<!-- Created with matplotlib (https://matplotlib.org/) -->\r\n<svg height=\"245.2025pt\" version=\"1.1\" viewBox=\"0 0 381.65 245.2025\" width=\"381.65pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n <metadata>\r\n <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n <cc:Work>\r\n <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n <dc:date>2021-03-20T19:59:23.582020</dc:date>\r\n <dc:format>image/svg+xml</dc:format>\r\n <dc:creator>\r\n <cc:Agent>\r\n <dc:title>Matplotlib v3.3.2, https://matplotlib.org/</dc:title>\r\n </cc:Agent>\r\n </dc:creator>\r\n </cc:Work>\r\n </rdf:RDF>\r\n </metadata>\r\n <defs>\r\n <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n </defs>\r\n <g id=\"figure_1\">\r\n <g id=\"patch_1\">\r\n <path d=\"M -0 245.2025 \r\nL 381.65 245.2025 \r\nL 381.65 0 \r\nL -0 0 \r\nz\r\n\" style=\"fill:none;\"/>\r\n </g>\r\n <g id=\"axes_1\">\r\n <g id=\"patch_2\">\r\n <path d=\"M 39.65 224.64 \r\nL 374.45 224.64 \r\nL 374.45 7.2 \r\nL 39.65 7.2 \r\nz\r\n\" style=\"fill:#ffffff;\"/>\r\n </g>\r\n <g id=\"patch_3\">\r\n <path clip-path=\"url(#p9286a580eb)\" d=\"M 81.5 224.64 \r\nL 165.2 224.64 \r\nL 165.2 17.554286 \r\nL 81.5 17.554286 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_4\">\r\n <path clip-path=\"url(#p9286a580eb)\" d=\"M 248.9 224.64 \r\nL 332.6 224.64 \r\nL 332.6 214.032236 \r\nL 248.9 214.032236 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"matplotlib.axis_1\">\r\n <g id=\"xtick_1\">\r\n <g id=\"line2d_1\">\r\n <defs>\r\n <path d=\"M 0 0 \r\nL 0 3.5 \r\n\" id=\"m2d7a9c812c\" style=\"stroke:#000000;stroke-width:0.8;\"/>\r\n </defs>\r\n <g>\r\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"123.35\" xlink:href=\"#m2d7a9c812c\" y=\"224.64\"/>\r\n </g>\r\n </g>\r\n <g id=\"text_1\">\r\n <!-- 0 -->\r\n <g transform=\"translate(126.109375 238.0025)rotate(-90)scale(0.1 -0.1)\">\r\n <defs>\r\n <path d=\"M 31.78125 66.40625 \r\nQ 24.171875 66.40625 20.328125 58.90625 \r\nQ 16.5 51.421875 16.5 36.375 \r\nQ 16.5 21.390625 20.328125 13.890625 \r\nQ 24.171875 6.390625 31.78125 6.390625 \r\nQ 39.453125 6.390625 43.28125 13.890625 \r\nQ 47.125 21.390625 47.125 36.375 \r\nQ 47.125 51.421875 43.28125 58.90625 \r\nQ 39.453125 66.40625 31.78125 66.40625 \r\nz\r\nM 31.78125 74.21875 \r\nQ 44.046875 74.21875 50.515625 64.515625 \r\nQ 56.984375 54.828125 56.984375 36.375 \r\nQ 56.984375 17.96875 50.515625 8.265625 \r\nQ 44.046875 -1.421875 31.78125 -1.421875 \r\nQ 19.53125 -1.421875 13.0625 8.265625 \r\nQ 6.59375 17.96875 6.59375 36.375 \r\nQ 6.59375 54.828125 13.0625 64.515625 \r\nQ 19.53125 74.21875 31.78125 74.21875 \r\nz\r\n\" id=\"DejaVuSans-48\"/>\r\n </defs>\r\n <use xlink:href=\"#DejaVuSans-48\"/>\r\n </g>\r\n </g>\r\n </g>\r\n <g id=\"xtick_2\">\r\n <g id=\"line2d_2\">\r\n <g>\r\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"290.75\" xlink:href=\"#m2d7a9c812c\" y=\"224.64\"/>\r\n </g>\r\n </g>\r\n <g id=\"text_2\">\r\n <!-- 1 -->\r\n <g transform=\"translate(293.509375 238.0025)rotate(-90)scale(0.1 -0.1)\">\r\n <defs>\r\n <path d=\"M 12.40625 8.296875 \r\nL 28.515625 8.296875 \r\nL 28.515625 63.921875 \r\nL 10.984375 60.40625 \r\nL 10.984375 69.390625 \r\nL 28.421875 72.90625 \r\nL 38.28125 72.90625 \r\nL 38.28125 8.296875 \r\nL 54.390625 8.296875 \r\nL 54.390625 0 \r\nL 12.40625 0 \r\nz\r\n\" id=\"DejaVuSans-49\"/>\r\n </defs>\r\n <use xlink:href=\"#DejaVuSans-49\"/>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n <g id=\"matplotlib.axis_2\">\r\n
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAX0AAAD1CAYAAAC87SVQAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAAAsTAAALEwEAmpwYAAANhUlEQVR4nO3df6jd913H8edryVaDs9jSmxDvzUzAiCYFO3qJgf6jq9jIxPSfSgbaIIELJcMOBE38R/wjUP8RKdhC0NEUdTGgo6GzmyFaRAxLb7SuS7vYYLvkktDczYnZP9Fkb/+4H93h5uTec9vk3C6f5wMO53ve5/s993Mge/bwPT+WqkKS1IePrPYCJEnjY/QlqSNGX5I6YvQlqSNGX5I6YvQlqSNrV3sBy3nggQdq8+bNq70MSfqBcubMmW9V1cTi+UjRT/IucBW4AVyvqukk9wN/CWwG3gV+taq+0/Y/COxr+/9mVX2lzR8GXgDWAX8DPF3LfFFg8+bNzM7Ojr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afAzYN7DcFXGrzqSHzoarqcFVNV9X0xMTE+1yiJGmx9xv948Detr0XeGlgvifJPUm2sPCG7el2Cuhqkp3tUztPDhwjSRqTtcvtkOQLwM8BDySZA34PeAY4lmQfcAF4AqCqziY5BrwJXAf2V9WN9lBPsfBJoHXAK+0iSRqjZaNfVZ+5xV2P3mL/Q8ChIfNZ4MEVrU6SdFv5jVxJ6ojRl6SOGH1J6ojRl6SOGH1J6ojRl6SOGH1J6ojRl6SOGH1J6ojRl6SOGH1J6ojRl6SOGH1J6ojRl6SOGH1J6ojRl6SOGH1J6ojRl6SOGH1J6ojRl6SOGH1J6ojRl6SOGH1J6oj
},
"metadata": {
"needs_background": "light"
}
}
],
"source": [
"data_orginal['stroke'].value_counts().plot(kind=\"bar\")\n"
]
},
{
"cell_type": "code",
"execution_count": 24,
"metadata": {},
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"<AxesSubplot:>"
]
},
"metadata": {},
"execution_count": 24
},
{
"output_type": "display_data",
"data": {
"text/plain": "<Figure size 432x288 with 1 Axes>",
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n<!-- Created with matplotlib (https://matplotlib.org/) -->\r\n<svg height=\"245.758775pt\" version=\"1.1\" viewBox=\"0 0 381.65 245.758775\" width=\"381.65pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n <metadata>\r\n <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n <cc:Work>\r\n <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n <dc:date>2021-03-20T19:59:26.764208</dc:date>\r\n <dc:format>image/svg+xml</dc:format>\r\n <dc:creator>\r\n <cc:Agent>\r\n <dc:title>Matplotlib v3.3.2, https://matplotlib.org/</dc:title>\r\n </cc:Agent>\r\n </dc:creator>\r\n </cc:Work>\r\n </rdf:RDF>\r\n </metadata>\r\n <defs>\r\n <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n </defs>\r\n <g id=\"figure_1\">\r\n <g id=\"patch_1\">\r\n <path d=\"M -0 245.758775 \r\nL 381.65 245.758775 \r\nL 381.65 0 \r\nL -0 0 \r\nz\r\n\" style=\"fill:none;\"/>\r\n </g>\r\n <g id=\"axes_1\">\r\n <g id=\"patch_2\">\r\n <path d=\"M 39.65 225.196275 \r\nL 374.45 225.196275 \r\nL 374.45 7.756275 \r\nL 39.65 7.756275 \r\nz\r\n\" style=\"fill:#ffffff;\"/>\r\n </g>\r\n <g id=\"patch_3\">\r\n <path clip-path=\"url(#p773d4bda8f)\" d=\"M 81.5 225.196275 \r\nL 165.2 225.196275 \r\nL 165.2 18.110561 \r\nL 81.5 18.110561 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_4\">\r\n <path clip-path=\"url(#p773d4bda8f)\" d=\"M 248.9 225.196275 \r\nL 332.6 225.196275 \r\nL 332.6 213.372598 \r\nL 248.9 213.372598 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"matplotlib.axis_1\">\r\n <g id=\"xtick_1\">\r\n <g id=\"line2d_1\">\r\n <defs>\r\n <path d=\"M 0 0 \r\nL 0 3.5 \r\n\" id=\"m89701e199f\" style=\"stroke:#000000;stroke-width:0.8;\"/>\r\n </defs>\r\n <g>\r\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"123.35\" xlink:href=\"#m89701e199f\" y=\"225.196275\"/>\r\n </g>\r\n </g>\r\n <g id=\"text_1\">\r\n <!-- 0 -->\r\n <g transform=\"translate(126.109375 238.558775)rotate(-90)scale(0.1 -0.1)\">\r\n <defs>\r\n <path d=\"M 31.78125 66.40625 \r\nQ 24.171875 66.40625 20.328125 58.90625 \r\nQ 16.5 51.421875 16.5 36.375 \r\nQ 16.5 21.390625 20.328125 13.890625 \r\nQ 24.171875 6.390625 31.78125 6.390625 \r\nQ 39.453125 6.390625 43.28125 13.890625 \r\nQ 47.125 21.390625 47.125 36.375 \r\nQ 47.125 51.421875 43.28125 58.90625 \r\nQ 39.453125 66.40625 31.78125 66.40625 \r\nz\r\nM 31.78125 74.21875 \r\nQ 44.046875 74.21875 50.515625 64.515625 \r\nQ 56.984375 54.828125 56.984375 36.375 \r\nQ 56.984375 17.96875 50.515625 8.265625 \r\nQ 44.046875 -1.421875 31.78125 -1.421875 \r\nQ 19.53125 -1.421875 13.0625 8.265625 \r\nQ 6.59375 17.96875 6.59375 36.375 \r\nQ 6.59375 54.828125 13.0625 64.515625 \r\nQ 19.53125 74.21875 31.78125 74.21875 \r\nz\r\n\" id=\"DejaVuSans-48\"/>\r\n </defs>\r\n <use xlink:href=\"#DejaVuSans-48\"/>\r\n </g>\r\n </g>\r\n </g>\r\n <g id=\"xtick_2\">\r\n <g id=\"line2d_2\">\r\n <g>\r\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"290.75\" xlink:href=\"#m89701e199f\" y=\"225.196275\"/>\r\n </g>\r\n </g>\r\n <g id=\"text_2\">\r\n <!-- 1 -->\r\n <g transform=\"translate(293.509375 238.558775)rotate(-90)scale(0.1 -0.1)\">\r\n <defs>\r\n <path d=\"M 12.40625 8.296875 \r\nL 28.515625 8.296875 \r\nL 28.515625 63.921875 \r\nL 10.984375 60.40625 \r\nL 10.984375 69.390625 \r\nL 28.421875 72.90625 \r\nL 38.28125 72.90625 \r\nL 38.28125 8.296875 \r\nL 54.390625 8.296875 \r\nL 54.390625 0 \r\nL 12.40625 0 \r\nz\r\n\" id=\"DejaVuSans-49\"/>\r\n </defs>\r\n <use xlink:href=\"#DejaVuSans-49\"/>\r\n </g>\r\n </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BVnU1yAniNhSt/DlXV9XbcI8DTwCbg+XaTJI3JstGvqn9k+Pl4gPtvcswR4MiQ+Sxwz0oWKElaPX4iV5I6YvQlqSNGX5I6YvQlqSNGX5I6YvQlqSNGX5I6YvQlqSNGX5I6YvQlqSNGX5I6YvQlqSNGX5I6YvQlqSNGX5I6YvQlqSNGX5I6YvQlqSNGX5I6YvQlqSNGX5I6YvQlqSNGX5I6YvQlqSNGX5I6YvQlqSNGX5I6YvQlqSNGX5I6YvQlqSNGX5I6YvQlqSNGX5I6YvQlqSPLRj/JF5NcSfKtgdmdSV5I8ka7v2PguceSnE9yLskDA/N7k7zannsiSVb/5UiSljLKO/2ngb2LZoeBU1W1AzjVHpNkJ7Af2NWOeTLJhnbMU8AMsKPdFn9NSdIttmz0q+rrwH8uGu8DjrXtY8CDA/PjVfVuVb0JnAd2J9kK3F5Vp6uqgGcGjpEkjcl7Pae/paouA7T7zW0+CVwc2G+uzSbb9uL5UElmkswmmZ2fn3+PS5QkLbbav8gddp6+lpgPVVVHq2q6qqYnJiZWbXGS1Lv3Gv232ykb2v2VNp8Dtg3sNwVcavOpIXNJ0hi91+ifBA607QPAswPz/UluS3I3C7+wPdNOAV1NsqddtfPwwDGSpDHZuNwOSb4E/CxwV5I54PeAx4ETSQ4CF4CHAKrqbJITwGvANeBQVV1vX+oRFq4E2gQ8326SpDFaNvpV9dmbPHX/TfY/AhwZMp8F7lnR6iRJq8pP5EpSR4y+JHXE6EtSR4y+JHXE6EtSR4y+JHXE6EtSR4y+JHXE6EtSR4y+JHXE6EtSR4y+JHXE6EtSR4y+JHXE6EtSR4y+JHXE6EtSR4y+JHXE6EtSR4y+JHXE6Et
},
"metadata": {
"needs_background": "light"
}
}
],
"source": [
"data_orginal['heart_disease'].value_counts().plot(kind=\"bar\")\n"
]
},
{
"cell_type": "code",
"execution_count": 25,
"metadata": {},
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"<AxesSubplot:>"
]
},
"metadata": {},
"execution_count": 25
},
{
"output_type": "display_data",
"data": {
"text/plain": "<Figure size 432x288 with 1 Axes>",
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n<!-- Created with matplotlib (https://matplotlib.org/) -->\r\n<svg height=\"323.293125pt\" version=\"1.1\" viewBox=\"0 0 381.65 323.293125\" width=\"381.65pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n <metadata>\r\n <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n <cc:Work>\r\n <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n <dc:date>2021-03-20T19:59:30.902892</dc:date>\r\n <dc:format>image/svg+xml</dc:format>\r\n <dc:creator>\r\n <cc:Agent>\r\n <dc:title>Matplotlib v3.3.2, https://matplotlib.org/</dc:title>\r\n </cc:Agent>\r\n </dc:creator>\r\n </cc:Work>\r\n </rdf:RDF>\r\n </metadata>\r\n <defs>\r\n <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n </defs>\r\n <g id=\"figure_1\">\r\n <g id=\"patch_1\">\r\n <path d=\"M -0 323.293125 \r\nL 381.65 323.293125 \r\nL 381.65 0 \r\nL -0 0 \r\nz\r\n\" style=\"fill:none;\"/>\r\n </g>\r\n <g id=\"axes_1\">\r\n <g id=\"patch_2\">\r\n <path d=\"M 39.65 224.64 \r\nL 374.45 224.64 \r\nL 374.45 7.2 \r\nL 39.65 7.2 \r\nz\r\n\" style=\"fill:#ffffff;\"/>\r\n </g>\r\n <g id=\"patch_3\">\r\n <path clip-path=\"url(#p5adb89c86e)\" d=\"M 60.575 224.64 \r\nL 102.425 224.64 \r\nL 102.425 17.554286 \r\nL 60.575 17.554286 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_4\">\r\n <path clip-path=\"url(#p5adb89c86e)\" d=\"M 144.275 224.64 \r\nL 186.125 224.64 \r\nL 186.125 55.644047 \r\nL 144.275 55.644047 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_5\">\r\n <path clip-path=\"url(#p5adb89c86e)\" d=\"M 227.975 224.64 \r\nL 269.825 224.64 \r\nL 269.825 127.773796 \r\nL 227.975 127.773796 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_6\">\r\n <path clip-path=\"url(#p5adb89c86e)\" d=\"M 311.675 224.64 \r\nL 353.525 224.64 \r\nL 353.525 138.281317 \r\nL 311.675 138.281317 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"matplotlib.axis_1\">\r\n <g id=\"xtick_1\">\r\n <g id=\"line2d_1\">\r\n <defs>\r\n <path d=\"M 0 0 \r\nL 0 3.5 \r\n\" id=\"m5a93e58ddd\" style=\"stroke:#000000;stroke-width:0.8;\"/>\r\n </defs>\r\n <g>\r\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"81.5\" xlink:href=\"#m5a93e58ddd\" y=\"224.64\"/>\r\n </g>\r\n </g>\r\n <g id=\"text_1\">\r\n <!-- never smoked -->\r\n <g transform=\"translate(84.259375 302.49)rotate(-90)scale(0.1 -0.1)\">\r\n <defs>\r\n <path d=\"M 54.890625 33.015625 \r\nL 54.890625 0 \r\nL 45.90625 0 \r\nL 45.90625 32.71875 \r\nQ 45.90625 40.484375 42.875 44.328125 \r\nQ 39.84375 48.1875 33.796875 48.1875 \r\nQ 26.515625 48.1875 22.3125 43.546875 \r\nQ 18.109375 38.921875 18.109375 30.90625 \r\nL 18.109375 0 \r\nL 9.078125 0 \r\nL 9.078125 54.6875 \r\nL 18.109375 54.6875 \r\nL 18.109375 46.1875 \r\nQ 21.34375 51.125 25.703125 53.5625 \r\nQ 30.078125 56 35.796875 56 \r\nQ 45.21875 56 50.046875 50.171875 \r\nQ 54.890625 44.34375 54.890625 33.015625 \r\nz\r\n\" id=\"DejaVuSans-110\"/>\r\n <path d=\"M 56.203125 29.59375 \r\nL 56.203125 25.203125 \r\nL 14.890625 25.203125 \r\nQ 15.484375 15.921875 20.484375 11.0625 \r\nQ 25.484375 6.203125 34.421875 6.203125 \r\nQ 39.59375 6.203125 44.453125 7.46875 \r\nQ 49.3125 8.734375 54.109375 11.28125 \r\nL 54.109375 2.78125 \r\nQ 49.265625 0.734375 44.1875 -0.34375 \r\nQ 39.109375 -1.421875 33.890625 -1.421875 \r\nQ 20.796875 -1.421875 13.15625 6.1875 \r\nQ 5.515625 13.8125 5.515625 26.8125 \r\nQ 5.515625 40.234375 12.765625 48.109375 \r\nQ 20.015625 56 32.328125 56 \r\nQ 43.359375 56 49.78125 48.890625 \r\nQ 56.203125 41.796875 56.203125 29.59375 \r\nz\r\nM 47.21875 32.234375 \r\nQ 47.125 39.59375 43.09
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAX0AAAFCCAYAAAAdVQ0pAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAAAsTAAALEwEAmpwYAAAcdUlEQVR4nO3dfZRdVZ3m8e9DQLSV9ICUiARJwIATIkaJiI0vKNMQQCG+djIKttIrwoJhbFpH0O7Rtie96FF02jc0NojYAqJIE1tBEFHaF8QKRBLASCBRQzJQSKu0LxkSn/nj7IJLUXmpcyt17q3zfNa6q+7Z99x7f7mr6sm5++yzt2wTERHtsFPTBURExMRJ6EdEtEhCPyKiRRL6EREtktCPiGiRnZsuYFv23HNPT58+vekyIiL6yrJlyx6wPTCyvedDf/r06QwODjZdRkREX5H009Ha070TEdEiC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+hERLZLQj4hokYR+RESLJPQjIlokoR8R0SIJ/YiIFknoR0S0SEI/IqJFEvoRES3SVehLWitphaTlkgZL2x6SrpN0V/m5e8f+50haLWmVpGO6LT4iIsZmPI70X257ju25Zfts4HrbM4HryzaSZgELgIOBecAnJE0Zh/ePiIjttCO6d04EPlvufxaY39F+me2NttcAq4HDdsD7R0TEFnQb+gaulbRM0qLStpftDQDl59NK+z7Azzueu660PY6kRZIGJQ0ODQ11WWJERAzbucvnH2F7vaSnAddJ+vFW9tUobR5tR9tLgCUAc+fOHXWfiIgYu66O9G2vLz/vB66k6q65T9LeAOXn/WX
},
"metadata": {
"needs_background": "light"
}
}
],
"source": [
"data_orginal['smoking_status'].value_counts().plot(kind=\"bar\")\n"
]
},
{
"cell_type": "code",
2021-03-26 16:36:45 +01:00
"execution_count": 28,
2021-03-20 20:04:51 +01:00
"metadata": {},
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"<AxesSubplot:>"
]
},
"metadata": {},
2021-03-26 16:36:45 +01:00
"execution_count": 28
2021-03-20 20:04:51 +01:00
},
{
"output_type": "display_data",
"data": {
"text/plain": "<Figure size 432x288 with 1 Axes>",
2021-03-26 16:36:45 +01:00
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n<!-- Created with matplotlib (https://matplotlib.org/) -->\r\n<svg height=\"269.08375pt\" version=\"1.1\" viewBox=\"0 0 381.65 269.08375\" width=\"381.65pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n <metadata>\r\n <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n <cc:Work>\r\n <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n <dc:date>2021-03-20T20:06:01.190561</dc:date>\r\n <dc:format>image/svg+xml</dc:format>\r\n <dc:creator>\r\n <cc:Agent>\r\n <dc:title>Matplotlib v3.3.2, https://matplotlib.org/</dc:title>\r\n </cc:Agent>\r\n </dc:creator>\r\n </cc:Work>\r\n </rdf:RDF>\r\n </metadata>\r\n <defs>\r\n <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n </defs>\r\n <g id=\"figure_1\">\r\n <g id=\"patch_1\">\r\n <path d=\"M -0 269.08375 \r\nL 381.65 269.08375 \r\nL 381.65 0 \r\nL -0 0 \r\nz\r\n\" style=\"fill:none;\"/>\r\n </g>\r\n <g id=\"axes_1\">\r\n <g id=\"patch_2\">\r\n <path d=\"M 39.65 224.64 \r\nL 374.45 224.64 \r\nL 374.45 7.2 \r\nL 39.65 7.2 \r\nz\r\n\" style=\"fill:#ffffff;\"/>\r\n </g>\r\n <g id=\"patch_3\">\r\n <path clip-path=\"url(#pd3e9aec6be)\" d=\"M 81.5 224.64 \r\nL 165.2 224.64 \r\nL 165.2 17.554286 \r\nL 81.5 17.554286 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_4\">\r\n <path clip-path=\"url(#pd3e9aec6be)\" d=\"M 248.9 224.64 \r\nL 332.6 224.64 \r\nL 332.6 24.095514 \r\nL 248.9 24.095514 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"matplotlib.axis_1\">\r\n <g id=\"xtick_1\">\r\n <g id=\"line2d_1\">\r\n <defs>\r\n <path d=\"M 0 0 \r\nL 0 3.5 \r\n\" id=\"md6de6d2197\" style=\"stroke:#000000;stroke-width:0.8;\"/>\r\n </defs>\r\n <g>\r\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"123.35\" xlink:href=\"#md6de6d2197\" y=\"224.64\"/>\r\n </g>\r\n </g>\r\n <g id=\"text_1\">\r\n <!-- Urban -->\r\n <g transform=\"translate(126.109375 261.88375)rotate(-90)scale(0.1 -0.1)\">\r\n <defs>\r\n <path d=\"M 8.6875 72.90625 \r\nL 18.609375 72.90625 \r\nL 18.609375 28.609375 \r\nQ 18.609375 16.890625 22.84375 11.734375 \r\nQ 27.09375 6.59375 36.625 6.59375 \r\nQ 46.09375 6.59375 50.34375 11.734375 \r\nQ 54.59375 16.890625 54.59375 28.609375 \r\nL 54.59375 72.90625 \r\nL 64.5 72.90625 \r\nL 64.5 27.390625 \r\nQ 64.5 13.140625 57.4375 5.859375 \r\nQ 50.390625 -1.421875 36.625 -1.421875 \r\nQ 22.796875 -1.421875 15.734375 5.859375 \r\nQ 8.6875 13.140625 8.6875 27.390625 \r\nz\r\n\" id=\"DejaVuSans-85\"/>\r\n <path d=\"M 41.109375 46.296875 \r\nQ 39.59375 47.171875 37.8125 47.578125 \r\nQ 36.03125 48 33.890625 48 \r\nQ 26.265625 48 22.1875 43.046875 \r\nQ 18.109375 38.09375 18.109375 28.8125 \r\nL 18.109375 0 \r\nL 9.078125 0 \r\nL 9.078125 54.6875 \r\nL 18.109375 54.6875 \r\nL 18.109375 46.1875 \r\nQ 20.953125 51.171875 25.484375 53.578125 \r\nQ 30.03125 56 36.53125 56 \r\nQ 37.453125 56 38.578125 55.875 \r\nQ 39.703125 55.765625 41.0625 55.515625 \r\nz\r\n\" id=\"DejaVuSans-114\"/>\r\n <path d=\"M 48.6875 27.296875 \r\nQ 48.6875 37.203125 44.609375 42.84375 \r\nQ 40.53125 48.484375 33.40625 48.484375 \r\nQ 26.265625 48.484375 22.1875 42.84375 \r\nQ 18.109375 37.203125 18.109375 27.296875 \r\nQ 18.109375 17.390625 22.1875 11.75 \r\nQ 26.265625 6.109375 33.40625 6.109375 \r\nQ 40.53125 6.109375 44.609375 11.75 \r\nQ 48.6875 17.390625 48.6875 27.296875 \r\nz\r\nM 18.109375 46.390625 \r\nQ 20.953125 51.265625 25.265625 53.625 \r\nQ 29.59375 56 35.59375 56 \r\nQ 45.5625 56 51.78125 48.09375 \r\nQ 58.015625 40.1875 58.015625 27.296875 \r\nQ 58.015625 14.40625 51.78125 6.484375 \r\nQ 45.5625 -1.421875 35.59375 -1.421875 \r\nQ 29.59375 -1.
2021-03-20 20:04:51 +01:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAX0AAAENCAYAAADjW7WQAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAAAsTAAALEwEAmpwYAAAQGUlEQVR4nO3df6zddX3H8eeLVpEIGEgvDNtiGemihWUoN00zlkxlG51uFpeQlSzSP0xqSI26uT/AfzRZmrgfasIyWGp0lIWNdVHTJsI2JGSGDMUL6VZK7ewsg2ubtqKbnS5o63t/nO+NZ+3pvbe3t+fA+Twfycn5nvf5fL/nfXJvXvd7P9/v95xUFZKkNlww6gYkScNj6EtSQwx9SWqIoS9JDTH0Jakhhr4kNWTpqBuYy7Jly2rVqlWjbkOSXlWefvrp71bVxKn1V3zor1q1iqmpqVG3IUmvKkn+c1Dd6R1JaoihL0kNMfQlqSGGviQ1xNCXpIYY+pLUEENfkhpi6EtSQ17xF2e9Wqy668ujbmFsPP/Jd4+6BWlsuacvSQ0x9CWpIYa+JDVkztBPsjLJ40n2Jdmb5MNd/RNJvpNkd3d7V986dyc5kGR/klv66jcm2dM9d0+SnJ+3JUkaZD4Hck8AH62qZ5JcAjyd5NHuuc9U1Z/1D06yBtgIXAe8EfhKkl+oqpPAfcBm4GvAw8B64JHFeSuSpLnMuadfVYer6plu+TiwD1g+yyobgIeq6uWqOggcANYmuQq4tKqerKoCHgBuPdc3IEmav7M6ZTPJKuCtwNeBm4APJrkDmKL338D36f1B+FrfatNd7Sfd8ql1SeeRpxMvrlf7KcXzPpCb5GLgC8BHquoH9KZqrgVuAA4Dn5oZOmD1mqU+6LU2J5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light"
}
}
],
"source": [
"data_orginal['Residence_type'].value_counts().plot(kind=\"bar\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
]
}