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:    CastError
Message:      Couldn't cast
id: string
version: timestamp[s]
title: string
covers: string
attribution: list<item: string>
  child 0, item: string
lines: list<item: struct<id: string, name: string>>
  child 0, item: struct<id: string, name: string>
      child 0, id: string
      child 1, name: string
stations: list<item: struct<name: string, zone: string, lat: double, lon: double, aliases: list<item: string>> (... 1 chars omitted)
  child 0, item: struct<name: string, zone: string, lat: double, lon: double, aliases: list<item: string>>
      child 0, name: string
      child 1, zone: string
      child 2, lat: double
      child 3, lon: double
      child 4, aliases: list<item: string>
          child 0, item: string
routes: list<item: struct<line: string, stations: list<item: int64>, minutes: list<item: double>, via: strin (... 3 chars omitted)
  child 0, item: struct<line: string, stations: list<item: int64>, minutes: list<item: double>, via: string>
      child 0, line: string
      child 1, stations: list<item: int64>
          child 0, item: int64
      child 2, minutes: list<item: double>
          child 0, item: double
      child 3, via: string
walks: list<item: struct<a: int64, b: int64, minutes: int64>>
  child 0, item: struct<a: int64, b: int64, minutes: int64>
      child 0, a: int64
      child 1, b: int64
      child 2, minutes: int64
places: list<item: list<item: string>>
  child 0, item: list<item: string>
      child 0, item: string
countries: null
snapshot: string
to
{'id': Value('string'), 'title': Value('string'), 'snapshot': Value('string'), 'countries': List(Json(decode=True)), 'places': List(List(Json(decode=True)))}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 149, 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 129, 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 544, 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 3052, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2559, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2584, 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 558, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 440, 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 361, 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 2381, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2309, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              id: string
              version: timestamp[s]
              title: string
              covers: string
              attribution: list<item: string>
                child 0, item: string
              lines: list<item: struct<id: string, name: string>>
                child 0, item: struct<id: string, name: string>
                    child 0, id: string
                    child 1, name: string
              stations: list<item: struct<name: string, zone: string, lat: double, lon: double, aliases: list<item: string>> (... 1 chars omitted)
                child 0, item: struct<name: string, zone: string, lat: double, lon: double, aliases: list<item: string>>
                    child 0, name: string
                    child 1, zone: string
                    child 2, lat: double
                    child 3, lon: double
                    child 4, aliases: list<item: string>
                        child 0, item: string
              routes: list<item: struct<line: string, stations: list<item: int64>, minutes: list<item: double>, via: strin (... 3 chars omitted)
                child 0, item: struct<line: string, stations: list<item: int64>, minutes: list<item: double>, via: string>
                    child 0, line: string
                    child 1, stations: list<item: int64>
                        child 0, item: int64
                    child 2, minutes: list<item: double>
                        child 0, item: double
                    child 3, via: string
              walks: list<item: struct<a: int64, b: int64, minutes: int64>>
                child 0, item: struct<a: int64, b: int64, minutes: int64>
                    child 0, a: int64
                    child 1, b: int64
                    child 2, minutes: int64
              places: list<item: list<item: string>>
                child 0, item: list<item: string>
                    child 0, item: string
              countries: null
              snapshot: string
              to
              {'id': Value('string'), 'title': Value('string'), 'snapshot': Value('string'), 'countries': List(Json(decode=True)), 'places': List(List(Json(decode=True)))}
              because column names don't match

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.

Cabin packs

Small offline fact packs for Cabin AI, an iPhone app that runs AI models on the device. The app downloads a pack, works things out from it (such as a route across London), and the model on the phone puts the answer into words.

london/london.json

London's Tube and Elizabeth line as a graph: stations with zones and common names, each line's routes in stop order with the minutes between stops, walking links between joined stations, and well-known places with their nearest stations. Built by scripts/build_london_pack.py in the Cabin repository from TfL's Unified API (route sequences, working timetables and the Journey Planner).

It doesn't include live service information, closures, engineering works, fares or step-free access.

Powered by TfL Open Data. Powered by the Transport for London Journey Planner API. Contains OS data © Crown copyright and database rights 2016 and Geomni UK Map data © and database rights [2019].

This pack isn't produced or endorsed by Transport for London.

encyclopedia/encyclopedia.sqlite

The opening section, in plain text and shortened to about 1,200 characters, of the English Wikipedia articles listed as vital (levels 1–4, about 10,000 articles), with each article's title and redirects for finding it by name. Built by scripts/build_encyclopedia_pack.py from the Wikipedia API.

Text from Wikipedia, by its contributors, under CC BY-SA 4.0. This file is a modified excerpt and is released under the same licence. Each article can be read in full at https://en.wikipedia.org/wiki/<title>. Wikipedia is a trademark of the Wikimedia Foundation; this pack isn't endorsed by or affiliated with it.

encyclopedia-large/encyclopedia-large.sqlite

The same as encyclopedia/, for the articles listed as vital at levels 1–5 (about 50,000 articles). Same licence and attribution.

countries/countries.json

What a traveller needs to know about 240 countries and territories: plug types, mains voltage and frequency, police, ambulance and fire numbers, which side of the road people drive on (and whether speed limits are in mph), calling codes, currencies, the languages most spoken and time zones, with short passages from each country's Wikivoyage guide on tipping, money, etiquette, language and electricity. About 5,600 cities and regions point to their country and time zone. Built by scripts/build_countries_pack.py in the Cabin repository.

Emergency numbers and plugs come from Wikipedia's "List of emergency telephone numbers" and "Mains electricity by country", checked against Wikidata; where they disagreed, the value was settled by hand (scripts/countries_overrides.json). Driving side, calling codes, currencies and demonyms come from Wikidata, speed units from Wikipedia's "Miles per hour", countries, cities, regions and languages from GeoNames, and time zones from the tz database. It doesn't include visas or entry rules, exchange rates or tap water safety.

Text from Wikipedia and Wikivoyage, by their contributors, under CC BY-SA 4.0. Contains GeoNames data under CC BY 4.0. Wikidata is CC0. This file is released under CC BY-SA 4.0. Wikipedia and Wikivoyage are trademarks of the Wikimedia Foundation; this pack isn't endorsed by or affiliated with it.

Licences

  • london/: TfL open data, under TfL's transport data terms.
  • encyclopedia/, encyclopedia-large/: CC BY-SA 4.0.
  • countries/: CC BY-SA 4.0 (Wikipedia, Wikivoyage), with GeoNames data under CC BY 4.0.
Downloads last month
90