Dataset Preview
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 1 new columns ({'charges'})
This happened while the csv dataset builder was generating data using
hf://datasets/praneeth232/medical-insurance-cost-prediction/insurance.csv (at revision f490c9d9526abc92dc509e7b5ade67f67825adf7)
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1831, in _prepare_split_single
writer.write_table(table)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 644, in write_table
pa_table = table_cast(pa_table, self._schema)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2272, in table_cast
return cast_table_to_schema(table, schema)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
age: int64
sex: string
bmi: double
children: int64
smoker: string
region: string
charges: double
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 1030
to
{'age': Value('int64'), 'sex': Value('int64'), 'bmi': Value('float64'), 'children': Value('int64'), 'smoker': Value('int64'), 'region': Value('int64')}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1456, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1055, in convert_to_parquet
builder.download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 894, in download_and_prepare
self._download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 970, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1702, in _prepare_split
for job_id, done, content in self._prepare_split_single(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1833, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 1 new columns ({'charges'})
This happened while the csv dataset builder was generating data using
hf://datasets/praneeth232/medical-insurance-cost-prediction/insurance.csv (at revision f490c9d9526abc92dc509e7b5ade67f67825adf7)
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
age int64 | sex int64 | bmi float64 | children int64 | smoker int64 | region int64 |
|---|---|---|---|---|---|
45 | 0 | 25.175 | 2 | 0 | 0 |
36 | 0 | 30.02 | 0 | 0 | 1 |
64 | 0 | 26.885 | 0 | 1 | 1 |
46 | 1 | 25.745 | 3 | 0 | 1 |
19 | 1 | 31.92 | 0 | 1 | 1 |
34 | 1 | 42.9 | 1 | 0 | 3 |
19 | 0 | 22.515 | 0 | 0 | 1 |
64 | 1 | 37.905 | 0 | 0 | 1 |
28 | 0 | 17.29 | 0 | 0 | 0 |
49 | 1 | 28.69 | 3 | 0 | 1 |
30 | 1 | 24.4 | 3 | 1 | 3 |
41 | 1 | 30.59 | 2 | 0 | 1 |
29 | 0 | 29.59 | 1 | 0 | 2 |
46 | 1 | 42.35 | 3 | 1 | 2 |
60 | 1 | 40.92 | 0 | 1 | 2 |
47 | 1 | 38.94 | 2 | 1 | 2 |
49 | 0 | 42.68 | 2 | 0 | 2 |
47 | 0 | 36.63 | 1 | 1 | 2 |
46 | 0 | 28.05 | 1 | 0 | 2 |
43 | 0 | 26.885 | 0 | 1 | 1 |
25 | 1 | 23.9 | 5 | 0 | 3 |
43 | 1 | 32.6 | 2 | 0 | 3 |
19 | 1 | 30.4 | 0 | 0 | 3 |
22 | 0 | 39.805 | 0 | 0 | 0 |
50 | 0 | 28.12 | 3 | 0 | 1 |
54 | 0 | 32.68 | 0 | 0 | 0 |
60 | 0 | 35.1 | 0 | 0 | 3 |
27 | 0 | 30.4 | 3 | 0 | 1 |
47 | 0 | 26.6 | 2 | 0 | 0 |
18 | 1 | 30.14 | 0 | 0 | 2 |
40 | 0 | 29.3 | 4 | 0 | 3 |
57 | 0 | 31.825 | 0 | 0 | 1 |
21 | 0 | 34.87 | 0 | 0 | 2 |
30 | 0 | 19.95 | 3 | 0 | 1 |
26 | 1 | 30 | 1 | 0 | 3 |
45 | 1 | 39.805 | 0 | 0 | 0 |
21 | 0 | 26.4 | 1 | 0 | 3 |
43 | 0 | 29.9 | 1 | 0 | 3 |
52 | 0 | 24.13 | 1 | 1 | 1 |
36 | 1 | 35.2 | 1 | 1 | 2 |
19 | 0 | 28.6 | 5 | 0 | 3 |
22 | 1 | 31.35 | 1 | 0 | 1 |
56 | 0 | 35.8 | 1 | 0 | 3 |
59 | 1 | 25.46 | 0 | 0 | 1 |
33 | 1 | 35.75 | 2 | 0 | 2 |
59 | 1 | 27.5 | 1 | 0 | 3 |
21 | 0 | 33.63 | 2 | 0 | 1 |
25 | 0 | 24.3 | 3 | 0 | 3 |
43 | 1 | 35.97 | 3 | 1 | 2 |
31 | 1 | 38.39 | 2 | 0 | 2 |
63 | 0 | 36.3 | 0 | 0 | 2 |
18 | 1 | 29.37 | 1 | 0 | 2 |
40 | 0 | 41.42 | 1 | 0 | 1 |
18 | 1 | 26.125 | 0 | 0 | 0 |
56 | 1 | 34.43 | 0 | 0 | 2 |
50 | 1 | 32.11 | 2 | 0 | 0 |
30 | 1 | 25.46 | 0 | 0 | 0 |
31 | 1 | 34.39 | 3 | 1 | 1 |
58 | 0 | 33.1 | 0 | 0 | 3 |
53 | 0 | 33.25 | 0 | 0 | 0 |
63 | 0 | 31.8 | 0 | 0 | 3 |
30 | 0 | 43.12 | 2 | 0 | 2 |
61 | 1 | 36.1 | 3 | 0 | 3 |
42 | 0 | 24.985 | 2 | 0 | 1 |
52 | 0 | 30.875 | 0 | 0 | 0 |
28 | 0 | 25.935 | 1 | 0 | 1 |
21 | 1 | 25.7 | 4 | 1 | 3 |
52 | 1 | 26.4 | 3 | 0 | 2 |
25 | 0 | 22.515 | 1 | 0 | 1 |
22 | 1 | 39.5 | 0 | 0 | 3 |
38 | 1 | 37.05 | 1 | 0 | 0 |
46 | 0 | 32.3 | 2 | 0 | 0 |
48 | 0 | 33.33 | 0 | 0 | 2 |
39 | 1 | 32.34 | 2 | 0 | 2 |
44 | 1 | 38.06 | 1 | 0 | 2 |
36 | 0 | 29.92 | 0 | 0 | 2 |
27 | 1 | 32.585 | 3 | 0 | 0 |
56 | 0 | 25.65 | 0 | 0 | 1 |
28 | 0 | 33 | 2 | 0 | 2 |
45 | 0 | 25.7 | 3 | 0 | 3 |
20 | 1 | 33.33 | 0 | 0 | 2 |
62 | 1 | 26.695 | 0 | 1 | 0 |
32 | 0 | 29.8 | 2 | 0 | 3 |
23 | 0 | 36.67 | 2 | 1 | 0 |
22 | 1 | 52.58 | 1 | 1 | 2 |
50 | 1 | 31.825 | 0 | 1 | 0 |
30 | 1 | 31.57 | 3 | 0 | 2 |
55 | 1 | 32.775 | 0 | 0 | 1 |
43 | 0 | 30.685 | 2 | 0 | 1 |
53 | 1 | 36.6 | 3 | 0 | 3 |
62 | 0 | 38.095 | 2 | 0 | 0 |
64 | 0 | 22.99 | 0 | 1 | 2 |
47 | 0 | 26.125 | 1 | 1 | 0 |
31 | 1 | 27.645 | 2 | 0 | 0 |
33 | 1 | 35.75 | 1 | 1 | 2 |
41 | 1 | 32.2 | 2 | 0 | 3 |
32 | 1 | 28.93 | 1 | 1 | 2 |
20 | 0 | 33 | 0 | 0 | 2 |
30 | 0 | 23.655 | 3 | 1 | 1 |
35 | 0 | 23.465 | 2 | 0 | 0 |
End of preview.
No dataset card yet
- Downloads last month
- 5