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 ({'AE'}) and 1 missing columns ({'AD'}).
This happened while the json dataset builder was generating data using
hf://datasets/wapiuk/LwHx8NXX5MV7Cn8F/AE.json (at revision 01966553708b454962a0f8a45db542881ee1ba68)
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 2013, in _prepare_split_single
writer.write_table(table)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 585, 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 2302, in table_cast
return cast_table_to_schema(table, schema)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2256, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
AE: struct<address_format: string, alpha2: string, alpha3: string, continent: string, country_code: string, currency_code: string, distance_unit: string, gec: string, geo: struct<latitude: double, longitude: double, max_latitude: double, max_longitude: double, min_latitude: double, min_longitude: double, bounds: struct<northeast: struct<lat: double, lng: double>, southwest: struct<lat: double, lng: double>>>, international_prefix: string, ioc: string, iso_long_name: string, iso_short_name: string, languages_official: list<item: string>, languages_spoken: list<item: string>, national_destination_code_lengths: list<item: int64>, national_number_lengths: list<item: int64>, national_prefix: string, nationality: string, number: string, postal_code: bool, region: string, start_of_week: string, subregion: string, un_locode: string, unofficial_names: list<item: string>, vat_rates: struct<standard: int64, reduced: list<item: null>, super_reduced: null, parking: null>, world_region: string>
child 0, address_format: string
child 1, alpha2: string
child 2, alpha3: string
child 3, continent: string
child 4, country_code: string
child 5, currency_code: string
child 6, distance_unit: string
child 7, gec: string
child 8, geo: struct<latitude: double, longitude: double, max_latitude: double, max_longitude: double, min_latitude: double, min_longitude: double, bounds: struct<northeast: struct<lat: double, lng: double>, southwest: struct<lat: double, lng: double>>>
child
...
n_longitude: double
child 6, bounds: struct<northeast: struct<lat: double, lng: double>, southwest: struct<lat: double, lng: double>>
child 0, northeast: struct<lat: double, lng: double>
child 0, lat: double
child 1, lng: double
child 1, southwest: struct<lat: double, lng: double>
child 0, lat: double
child 1, lng: double
child 9, international_prefix: string
child 10, ioc: string
child 11, iso_long_name: string
child 12, iso_short_name: string
child 13, languages_official: list<item: string>
child 0, item: string
child 14, languages_spoken: list<item: string>
child 0, item: string
child 15, national_destination_code_lengths: list<item: int64>
child 0, item: int64
child 16, national_number_lengths: list<item: int64>
child 0, item: int64
child 17, national_prefix: string
child 18, nationality: string
child 19, number: string
child 20, postal_code: bool
child 21, region: string
child 22, start_of_week: string
child 23, subregion: string
child 24, un_locode: string
child 25, unofficial_names: list<item: string>
child 0, item: string
child 26, vat_rates: struct<standard: int64, reduced: list<item: null>, super_reduced: null, parking: null>
child 0, standard: int64
child 1, reduced: list<item: null>
child 0, item: null
child 2, super_reduced: null
child 3, parking: null
child 27, world_region: string
to
{'AD': {'alpha2': Value(dtype='string', id=None), 'alpha3': Value(dtype='string', id=None), 'continent': Value(dtype='string', id=None), 'country_code': Value(dtype='string', id=None), 'currency_code': Value(dtype='string', id=None), 'distance_unit': Value(dtype='string', id=None), 'gec': Value(dtype='string', id=None), 'geo': {'latitude': Value(dtype='float64', id=None), 'longitude': Value(dtype='float64', id=None), 'max_latitude': Value(dtype='float64', id=None), 'max_longitude': Value(dtype='float64', id=None), 'min_latitude': Value(dtype='float64', id=None), 'min_longitude': Value(dtype='float64', id=None), 'bounds': {'northeast': {'lat': Value(dtype='float64', id=None), 'lng': Value(dtype='float64', id=None)}, 'southwest': {'lat': Value(dtype='float64', id=None), 'lng': Value(dtype='float64', id=None)}}}, 'international_prefix': Value(dtype='string', id=None), 'ioc': Value(dtype='string', id=None), 'iso_long_name': Value(dtype='string', id=None), 'iso_short_name': Value(dtype='string', id=None), 'languages_official': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), 'languages_spoken': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), 'national_destination_code_lengths': Sequence(feature=Value(dtype='int64', id=None), length=-1, id=None), 'national_number_lengths': Sequence(feature=Value(dtype='int64', id=None), length=-1, id=None), 'national_prefix': Value(dtype='string', id=None), 'nationality': Value(dtype='string', id=None), 'number': Value(dtype='string', id=None), 'postal_code': Value(dtype='bool', id=None), 'postal_code_format': Value(dtype='string', id=None), 'region': Value(dtype='string', id=None), 'start_of_week': Value(dtype='string', id=None), 'subregion': Value(dtype='string', id=None), 'un_locode': Value(dtype='string', id=None), 'unofficial_names': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), 'world_region': Value(dtype='string', id=None)}}
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 1396, 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 1045, in convert_to_parquet
builder.download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1029, in download_and_prepare
self._download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1124, 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 1884, 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 2015, 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 ({'AE'}) and 1 missing columns ({'AD'}).
This happened while the json dataset builder was generating data using
hf://datasets/wapiuk/LwHx8NXX5MV7Cn8F/AE.json (at revision 01966553708b454962a0f8a45db542881ee1ba68)
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.
AD dict | AE dict | AF dict |
|---|---|---|
{
"alpha2": "AD",
"alpha3": "AND",
"continent": "Europe",
"country_code": "376",
"currency_code": "EUR",
"distance_unit": "KM",
"gec": "AN",
"geo": {
"latitude": 42.506285,
"longitude": 1.521801,
"max_latitude": 42.655791,
"max_longitude": 1.786639,
"min_latitude": 42.4287488,
"m... | null | null |
null | {
"address_format": "{{recipient}}\n{{street}}\n{{postalcode}} {{city}}\n{{country}}",
"alpha2": "AE",
"alpha3": "ARE",
"continent": "Asia",
"country_code": "971",
"currency_code": "AED",
"distance_unit": "KM",
"gec": "AE",
"geo": {
"latitude": 23.424076,
"longitude": 53.847818,
"max_latit... | null |
null | null | {
"alpha2": "AF",
"alpha3": "AFG",
"continent": "Asia",
"country_code": "93",
"currency_code": "AFN",
"distance_unit": "KM",
"gec": "AF",
"geo": {
"latitude": 33.93911,
"longitude": 67.709953,
"max_latitude": 38.49087670000001,
"max_longitude": 74.8898619,
"min_latitude": 29.3772,
... |
README.md exists but content is empty.
- Downloads last month
- 6