{ "cells": [ { "cell_type": "code", "execution_count": 12, "id": "ecf6f699-9799-49dd-b553-2bf87b763ea1", "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import matplotlib.pyplot as plt\n", "import numpy as np" ] }, { "cell_type": "code", "execution_count": 13, "id": "08a7ac73-f032-43f6-985c-ef004b0c123d", "metadata": {}, "outputs": [], "source": [ "df = pd.read_csv(\"insurance_data.csv\")" ] }, { "cell_type": "code", "execution_count": 27, "id": "24ebd375-3904-4c96-bb61-1810dfb24e48", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | age | \n", "bought_insurance | \n", "
---|---|---|
0 | \n", "22 | \n", "0 | \n", "
1 | \n", "25 | \n", "0 | \n", "
2 | \n", "47 | \n", "1 | \n", "
3 | \n", "52 | \n", "0 | \n", "
4 | \n", "46 | \n", "1 | \n", "