The dataset viewer is not available for this split.
Error code: FeaturesError
Exception: ArrowInvalid
Message: JSON parse error: Column() changed from object to string in row 0
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 354, in _generate_tables
df = pandas_read_json(f)
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 38, in pandas_read_json
return pd.read_json(path_or_buf, **kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 815, in read_json
return json_reader.read()
~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 1014, in read
obj = self._get_object_parser(self.data)
File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 1040, in _get_object_parser
obj = FrameParser(json, **kwargs).parse()
File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 1176, in parse
self._parse()
~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 1392, in _parse
ujson_loads(json, precise_float=self.precise_float), dtype=None
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: Trailing data
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/split/first_rows.py", line 244, in compute_first_rows_from_streaming_response
iterable_dataset = iterable_dataset._resolve_features()
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 4675, in _resolve_features
features = _infer_features_from_batch(self.with_format(None)._head())
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2885, in _head
return next(iter(self.iter(batch_size=n)))
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 3095, in iter
for key, pa_table in ex_iterable.iter_arrow():
~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2600, in _iter_arrow
yield from self.ex_iterable._iter_arrow()
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 577, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 459, 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 357, in _generate_tables
raise e
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 295, in _generate_tables
pa_table = paj.read_json(
io.BytesIO(batch), read_options=paj.ReadOptions(block_size=block_size)
)
File "pyarrow/_json.pyx", line 364, in pyarrow._json.read_json
File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
return check_status(status)
File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
raise convert_status(status)
pyarrow.lib.ArrowInvalid: JSON parse error: Column() changed from object to string in row 0Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
15-Minute Facility Relocation Reproduction Sample
This sample contains original OpenStreetMap road extracts, routing configuration, optimization inputs, and reference results for 20 cities. Each city includes population grids, candidate locations, existing sites in nine facility categories, walking-time matrices, and the original optimized locations and per-grid walking times. Cities were selected for compact, complete inputs and coverage across different countries.
Download and run
Download facility-relocation-sample.zip into the existing project’s code/ directory. This directory contains server_greedy.py, capacity.py, greedy.py, reachable.py, and requirements-cpu.txt. Run the following from code/ on x86-64 Linux. Use the existing project Python environment if available.
unzip facility-relocation-sample.zip
python3.12 -m pip install -r requirements-cpu.txt
bash setup_osrm.sh
python3.12 reproduce_sample.py --rebuild-routing --city author_8442
Docker and network access are used once to extract the pinned OSRM 5.27.1 Linux distribution. Subsequent runs use the extracted OSRM executables and the supplied pedestrian profile locally. The script builds the routing graph from each PBF file, regenerates the candidate and baseline matrices, and passes those new matrices to the CPU layout solver.
Omit --city author_8442 to run all 20 cities. New matrices and layouts are written to code/outputs/facility_relocation_sample/. Omit --rebuild-routing to run the layout solver directly with the supplied matrices. The matrix-only mode needs no OSRM installation.
The extracted facility-relocation-sample/ directory contains:
| Path | Contents |
|---|---|
cities.json |
City names, slugs, countries, and input and result sizes |
data/raw_osm/<slug>/network.osm.pbf |
The exact OpenStreetMap road extract used for each city |
data/raw_config.json |
Routing algorithm per city |
routing/ |
OSRM configuration, pedestrian profile, Lua dependencies, and license |
data/greedy_inputs/ |
Population grids, candidate locations, facility tables, walking-time matrices, and routing provenance |
reference_results/ |
Original locations, per-grid times, summaries, and verification records |
All 20 cities were rerun from their original PBF files on Linux with Python 3.12 and OSRM 5.27.1. All 200 regenerated matrices matched the reference matrices element for element. The selected locations matched the original run in all nine facility categories per city, and the per-grid walking times matched within an absolute tolerance of 1e-9 minutes. This run took 131 seconds on the validation server, excluding dependency setup and downloads.
Verified source files
| File | SHA-256 |
|---|---|
server_greedy.py |
6dc0aa539470530ab00e2d22a3a826eea75789207cf2f9665d203498c092ac85 |
capacity.py |
b68456c3d3bd8d4c68514b6f4f5ee49f6820f96152f34f85fc2b3256ffa3bc9d |
greedy.py |
0b9270f1440b825347012ef2e758347ec159505ef661bcb9c4fa4390585769e9 |
reachable.py |
16874f9d6862c6182ea60b5e1b86ed9e158886069d766dc50fd873caae073256 |
Data sources
- Population grids and geometry come from Sony CSL Rome’s 15 Minute City platform. Retain the source attribution and follow the applicable license.
- The walking network and existing facilities contain data from © OpenStreetMap contributors, available under the Open Database License 1.0. Each city’s
routing_provenance.jsonidentifies its road snapshot and routing version. The original PBF files retain the map contributors’ place names and tags. - The walking profile and Lua modules come from OSRM 5.27.1.
- Downloads last month
- 48