Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    TypeError
Message:      Couldn't cast array of type
struct<iso3: string, name: string, population: int64, aged_65_plus_pct: double, period: string, notes: string>
to
{'iso3': Value('string'), 'name': Value('string'), 'population': Value('int64'), 'period': Value('string'), 'notes': Value('string')}
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 147, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 127, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 483, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2951, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2461, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2486, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 547, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 430, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2312, in cast_table_to_schema
                  cast_array_to_feature(
                  ~~~~~~~~~~~~~~~~~~~~~^
                      table[name] if name in table_column_names else pa.array([None] * len(table), type=schema.field(name).type),
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                      feature,
                      ^^^^^^^^
                  )
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1861, in wrapper
                  return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
                                           ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2118, in cast_array_to_feature
                  casted_array_values = _c(array.values, feature.feature)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1863, in wrapper
                  return func(array, *args, **kwargs)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2158, in cast_array_to_feature
                  raise TypeError(f"Couldn't cast array of type\n{_short_str(array.type)}\nto\n{_short_str(feature)}")
              TypeError: Couldn't cast array of type
              struct<iso3: string, name: string, population: int64, aged_65_plus_pct: double, period: string, notes: string>
              to
              {'iso3': Value('string'), 'name': Value('string'), 'population': Value('int64'), 'period': Value('string'), 'notes': Value('string')}

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.

World places, credited (no open licence)

Official population figures for places the World Bank's API leaves out, from statistics offices that publish them under plain copyright or with no licence stated. They are republished as facts, each credited to its publisher with a link to its own page, and kept apart from the open-licence dataset alreadyopen/world-places. Rebuilt weekly by AlreadyOpen/world-places.

Terms: no open licence. Each file names its publisher and links its terms where one exists; check them before reuse. Somaliland's figure is entered by hand from its PDF. Western Sahara is not here: Morocco HCP's regional figures are CC BY 4.0 and sit in the open dataset.

  • index.json, <source>.json (one per source, never merged), manifest.json. Each file carries "licence_note".
  • Northern Cyprus and Somaliland use Natural Earth's codes CYN and SOL. saint_helena.json holds Tristan da Cunha as a sub-place SHN-TA with its own publisher and url (Ascension publishes no figures). somaliland_manual.json is entered by hand from the PDF (entered_by_hand says when) and rechecked yearly.
File Places Publisher Terms
guernsey.json Guernsey States of Guernsey Data & Analysis no open licence stated; facts republished with credit (source)
northern_cyprus.json Northern Cyprus (CYN) TRNC Statistical Institute (İstatistik Kurumu) no open licence stated (terms of use)
anguilla.json Anguilla Anguilla Statistics Department no open licence stated (source)
montserrat.json Montserrat Statistics Department Montserrat, Ministry of Finance and Economic Management no open licence stated (source)
saint_helena.json Saint Helena; Tristan da Cunha (SHN-TA) St Helena Government Statistics Office; Tristan da Cunha Association (Tristan) no open licence stated (St Helena, Tristan)
falklands.json Falkland Islands Falkland Islands Government, Policy Department no open licence stated (source)
vatican.json Vatican City Governatorato dello Stato della Città del Vaticano no open licence stated (source)
somaliland_manual.json Somaliland (SOL) Central Statistics Department, Ministry of Planning and National Development, Somaliland no open licence stated (PDF)

Provided as is, with no warranty, and not endorsed by any of the sources.

Downloads last month
49