Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
Unnamed: 0
int64
0
1.34k
age
float64
-1.51
1.76
is_female
int64
0
1
bmi
float64
-2.48
3.73
children
float64
-0.91
3.24
is_smoker
int64
0
1
charges
int64
1.12k
63.8k
region_southeast
int64
0
1
bmi_categary_Obese
int64
0
1
0
-1.440418
1
-0.517949
-0.909234
1
16,884
0
0
1
-1.511647
0
0.462463
-0.079442
0
1,725
1
1
2
-0.79935
0
0.462463
1.580143
0
4,449
1
1
3
-0.443201
0
-1.33496
-0.909234
0
21,984
0
0
4
-0.514431
0
-0.354547
-0.909234
0
3,866
0
0
5
-0.585661
1
-0.844753
-0.909234
0
3,756
1
0
6
0.482785
1
0.462463
-0.079442
0
8,240
1
1
7
-0.158282
1
-0.517949
1.580143
0
7,281
0
0
8
-0.158282
0
-0.191145
0.750351
0
6,406
0
0
9
1.480002
1
-0.844753
-0.909234
0
28,923
0
0
10
-1.013039
0
-0.681351
-0.909234
0
2,721
0
0
11
1.622461
1
-0.681351
-0.909234
1
27,808
1
0
12
-1.155499
0
0.625865
-0.909234
0
1,826
0
1
13
1.195083
1
1.442876
-0.909234
0
11,090
1
1
14
-0.87058
0
1.933082
-0.909234
1
39,611
1
1
15
-1.440418
0
-1.008155
-0.079442
0
1,837
0
0
16
0.910164
1
-0.027743
-0.079442
0
10,797
0
1
17
-1.155499
0
-1.171557
-0.909234
0
2,395
0
0
18
1.195083
0
1.606278
-0.909234
0
10,602
0
1
19
-0.656891
0
0.789267
-0.909234
1
36,837
0
1
20
1.480002
1
0.95267
-0.909234
0
13,228
0
1
21
-0.656891
1
0.299061
-0.079442
0
4,149
0
1
22
-1.511647
0
0.625865
-0.909234
0
1,137
1
1
23
-0.371972
1
0.135659
-0.079442
1
37,701
0
1
24
-0.158282
0
-0.354547
0.750351
0
6,203
0
0
25
1.408772
1
-0.517949
1.580143
0
14,001
1
0
26
1.693691
1
-1.171557
-0.909234
0
14,451
0
0
27
1.123853
1
0.299061
0.750351
0
12,268
0
1
28
-1.155499
0
-2.15197
-0.079442
0
2,775
0
0
29
-0.585661
0
0.95267
0.750351
1
38,711
0
1
30
-1.226729
0
0.789267
-0.909234
1
35,585
0
1
31
-1.511647
1
-0.681351
-0.909234
0
2,198
0
0
32
-1.440418
1
-0.354547
3.239729
0
4,687
0
0
33
1.693691
0
-0.354547
-0.909234
0
13,770
0
0
34
-0.79935
0
0.95267
-0.079442
1
51,194
0
1
35
-1.440418
0
-1.661764
-0.909234
0
1,625
0
0
36
1.622461
1
0.299061
1.580143
0
15,612
0
1
37
-0.94181
0
-1.661764
-0.909234
0
2,302
0
0
38
-0.300742
0
0.95267
-0.079442
1
39,774
0
1
39
1.480002
0
1.442876
-0.909234
1
48,173
0
1
40
-1.084269
1
-0.681351
-0.909234
0
3,046
0
0
41
-0.585661
1
0.95267
0.750351
0
4,949
1
1
42
0.126637
0
-1.498362
-0.079442
0
6,272
1
0
43
-0.158282
1
-0.027743
0.750351
0
6,313
1
1
44
-0.087053
0
1.116072
-0.079442
0
6,079
0
1
45
1.123853
0
1.116072
-0.909234
0
20,630
0
1
46
-1.511647
1
1.279474
0.750351
0
3,393
0
1
47
-0.79935
1
0.625865
-0.909234
0
3,556
0
1
48
1.480002
1
-1.008155
-0.909234
0
12,629
1
0
49
-0.229512
0
0.789267
-0.079442
1
38,709
1
1
50
-1.511647
1
0.789267
-0.909234
0
2,211
0
1
51
-1.297958
1
0.462463
0.750351
0
3,579
0
1
52
0.625245
0
-0.354547
-0.079442
1
23,568
0
0
53
-0.229512
0
0.625865
-0.909234
1
37,742
1
1
54
0.055407
1
-0.354547
1.580143
0
8,059
0
0
55
1.337542
0
0.95267
0.750351
1
47,496
0
1
56
1.337542
1
0.135659
0.750351
0
13,607
0
1
57
-1.511647
0
0.135659
0.750351
1
34,303
1
1
58
0.981393
1
-1.33496
-0.079442
1
23,244
1
0
59
-0.371972
1
1.116072
0.750351
0
5,989
0
1
60
0.269096
0
-0.517949
1.580143
0
8,606
0
0
61
-1.013039
0
0.462463
2.409936
0
4,504
1
1
62
1.764921
0
-1.008155
-0.079442
0
30,166
0
0
63
-0.79935
1
-0.844753
-0.079442
0
4,133
0
0
64
-1.369188
1
-1.33496
-0.909234
1
14,711
0
0
65
-1.440418
1
-0.354547
-0.909234
0
1,743
0
0
66
1.551231
1
1.442876
0.750351
0
14,235
0
1
67
0.055407
0
-0.681351
-0.079442
0
6,389
0
0
68
0.055407
1
0.95267
-0.909234
0
5,920
1
1
69
-0.79935
0
-1.171557
1.580143
1
17,663
1
0
70
-0.87058
1
-1.008155
-0.909234
1
16,577
1
0
71
-0.585661
0
-0.354547
3.239729
0
6,799
0
0
72
0.981393
1
-0.354547
1.580143
0
11,741
0
0
73
1.337542
0
0.299061
-0.079442
0
11,946
1
1
74
0.340326
0
-0.517949
0.750351
0
7,726
0
0
75
1.266312
0
0.625865
-0.909234
0
11,356
0
1
76
-0.72812
1
-0.191145
-0.079442
0
3,947
1
0
77
-1.297958
0
0.789267
-0.909234
0
1,532
1
1
78
-1.226729
1
1.442876
-0.909234
0
2,755
0
1
79
0.126637
1
0.299061
-0.909234
0
6,571
0
1
80
-0.585661
0
-0.681351
-0.079442
0
4,441
0
0
81
0.411556
1
1.279474
-0.909234
0
7,935
0
1
82
-1.226729
0
1.116072
-0.079442
1
37,165
1
1
83
0.625245
1
1.76968
2.409936
0
11,033
0
1
84
-0.158282
1
0.625865
0.750351
1
39,836
0
1
85
0.411556
0
-1.33496
0.750351
1
21,098
0
0
86
1.266312
1
0.135659
-0.909234
1
43,578
0
1
87
1.195083
1
-0.517949
-0.909234
0
11,073
0
0
88
0.482785
1
-0.517949
-0.909234
0
8,026
0
0
89
1.123853
1
-0.681351
-0.909234
0
11,082
0
0
90
-1.297958
1
1.442876
-0.909234
0
2,026
1
1
91
0.981393
1
-1.008155
-0.079442
0
10,942
0
0
92
1.408772
0
-0.191145
1.580143
1
30,184
0
0
93
-0.300742
0
0.625865
0.750351
0
5,729
0
1
94
1.764921
1
0.135659
0.750351
1
47,291
0
1
95
-0.79935
1
1.116072
-0.079442
0
3,766
1
1
96
1.052623
1
-0.027743
1.580143
0
12,105
0
1
97
1.123853
0
1.279474
-0.909234
0
10,226
1
1
98
1.195083
0
-1.825166
-0.909234
1
22,412
0
0
99
-0.087053
0
-1.825166
-0.909234
1
15,820
0
0
End of preview. Expand in Data Studio

Preprocessed Medical Insurance Cost Dataset

Dataset Summary

This dataset contains 1,337 preprocessed records for predicting individual medical insurance costs (charges) based on demographic and health indicators. Derived from the classic US Medical Cost Personal Dataset, this version has been cleaned, deduplicated (1 duplicate removed from the original 1,338 rows), feature-engineered, and standardized for immediate use in tabular regression pipelines.

  • Rows: 1,337
  • Columns: 9 (1 index column, 7 features, 1 target)
  • Missing Values: None (0 nulls across all columns)
  • Task: Tabular Regression (predicting charges)

Dataset Structure

Data Fields

Column Name Data Type Description Value Range / Distribution
Unnamed: 0 int64 Sequential row index exported from pandas (0 to 1336). Note: Drop before model training. 0 – 1336
age float64 Standardized age of the primary beneficiary ($z$-score scaled: $\mu = 0, \sigma = 1$). -1.51 to 1.76
is_female int64 Binary sex indicator (1 = female, 0 = male). 0 (50.5%), 1 (49.5%)
bmi float64 Standardized Body Mass Index ($z$-score scaled: $\mu = 0, \sigma = 1$). -2.48 to 3.73
children int64 / float64 Standardized number of dependents/children covered by health insurance ($z$-score scaled: $\mu = 0, \sigma = 1$). -0.91 to 3.24
is_smoker int64 Binary smoking status (1 = smoker, 0 = non-smoker). 0 (79.5%), 1 (20.5%)
charges int64 [Target] Individual medical costs billed by health insurance (truncated to integer dollars). 1,121 – 63,770 (Mean: 13,279, Median: 9,386)
region_southeast int64 One-hot encoded indicator for the US Southeast residential region (1 = Southeast, 0 = Other). 0 (72.8%), 1 (27.2%)
bmi_categary_Obese int64 Engineered binary indicator for obesity (1 = BMI $\ge 30$, 0 = BMI $< 30$). (Preserves original column spelling). 0 (47.2%), 1 (52.8%)

Sample Rows

Unnamed: 0 age is_female bmi children is_smoker charges region_southeast bmi_categary_Obese
0 -1.440418 1 -0.517949 -0.909234 1 16884 0 0
1 -1.511647 0 0.462463 -0.079442 0 1725 1 1
2 -0.799350 0 0.462463 1.580143 0 4449 1 1
3 -0.443201 0 -1.334960 -0.909234 0 21984 0 0
4 -0.514431 0 -0.354547 -0.909234 0 3866 0 0

Usage

Load with Hugging Face datasets

from datasets import load_dataset

dataset = load_dataset("codehammad/preprocessed-insurance-costs", split="train")
df = dataset.to_pandas()

# Drop the exported index column before training
X = df.drop(columns=["Unnamed: 0", "charges"], errors="ignore")
y = df["charges"]
Downloads last month
47