📊 Dataset · CSV
insurance_raw.csv
Free CSV dataset “insurance_raw.csv” (1,338 rows × 7 columns, 53.0 KB) used in 1 Python lesson, including “Python Data Analytics #33: Real Medical Insurance…
- Size53.0 KB
- Rows1,338
- Columns7
- Used in1 lesson
Preview (first rows)
| age | sex | bmi | children | smoker | region | charges |
|---|---|---|---|---|---|---|
| 19 | female | 27.9 | 0 | yes | southwest | 16884.924 |
| 18 | male | 33.77 | 1 | no | southeast | 1725.5523 |
| 28 | male | 33.0 | 3 | no | southeast | 4449.462 |
| 33 | male | 22.705 | 0 | no | northwest | 21984.47061 |
| 32 | male | 28.88 | 0 | no | northwest | 3866.8552 |
| 31 | female | 25.74 | 0 | no | southeast | 3756.6216 |
| 46 | female | 33.44 | 1 | no | southeast | 8240.5896 |
| 37 | female | 27.74 | 3 | no | northwest | 7281.5056 |
Columns
| Column | Type | Missing | Example |
|---|---|---|---|
age | integer | 0 | 19 |
sex | text | 0 | female |
bmi | decimal | 0 | 27.9 |
children | integer | 0 | 0 |
smoker | text | 0 | yes |
region | text | 0 | southwest |
charges | decimal | 0 | 16884.924 |
Load it in Python
import pandas as pd
df = pd.read_csv("insurance_raw.csv")
df.head()
