Dataset Preview
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code: DatasetGenerationError
Exception: ArrowInvalid
Message: Failed to parse string: 'R6' as a scalar of type int64
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1848, in _prepare_split_single
writer.write_table(table)
~~~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 765, in write_table
self._write_table(pa_table, writer_batch_size=writer_batch_size)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 773, in _write_table
pa_table = table_cast(pa_table, self._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 2152, in cast_array_to_feature
return array_cast(
array,
...<2 lines>...
allow_decimal_to_str=allow_decimal_to_str,
)
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 2015, in array_cast
return array.cast(pa_type)
~~~~~~~~~~^^^^^^^^^
File "pyarrow/array.pxi", line 1161, in pyarrow.lib.Array.cast
File "/usr/local/lib/python3.14/site-packages/pyarrow/compute.py", line 414, in cast
return call_function("cast", [arr], options, memory_pool)
File "pyarrow/_compute.pyx", line 604, in pyarrow._compute.call_function
return func.call(args, options=options, memory_pool=memory_pool,
File "pyarrow/_compute.pyx", line 399, in pyarrow._compute.Function.call
result = GetResultValue(
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: Failed to parse string: 'R6' as a scalar of type int64
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1694, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1880, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
geo_code int64 | geo_name string | geo_short string | geo_system string | year int64 | value_status string | unit string | accidents float64 | deaths float64 | injuries float64 |
|---|---|---|---|---|---|---|---|---|---|
0 | Viet Nam | VN | national | 2,022 | final | count | 11,457 | 6,397 | 7,804 |
0 | Viet Nam | VN | national | 2,023 | final | count | 22,067 | 11,628 | 15,292 |
0 | Viet Nam | VN | national | 2,024 | final | count | 23,667 | 11,101 | 17,424 |
1 | Ha Noi | HN | historical_63 | 2,022 | final | count | 812 | 408 | 573 |
1 | Ha Noi | HN | historical_63 | 2,023 | final | count | 1,248 | 710 | 823 |
1 | Ha Noi | HN | historical_63 | 2,024 | final | count | 1,488 | 701 | 1,192 |
2 | Ha Giang | HG | historical_63 | 2,022 | final | count | 20 | 19 | 10 |
2 | Ha Giang | HG | historical_63 | 2,023 | final | count | 90 | 66 | 77 |
2 | Ha Giang | HG | historical_63 | 2,024 | final | count | 80 | 67 | 42 |
4 | Cao Bang | CB | historical_63 | 2,022 | final | count | 74 | 38 | 84 |
4 | Cao Bang | CB | historical_63 | 2,023 | final | count | 171 | 38 | 190 |
4 | Cao Bang | CB | historical_63 | 2,024 | final | count | 143 | 37 | 162 |
6 | Bac Kan | BK | historical_63 | 2,022 | final | count | 41 | 19 | 44 |
6 | Bac Kan | BK | historical_63 | 2,023 | final | count | 68 | 30 | 76 |
6 | Bac Kan | BK | historical_63 | 2,024 | final | count | 83 | 31 | 90 |
8 | Tuyen Quang | TQ | historical_63 | 2,022 | final | count | 97 | 36 | 87 |
8 | Tuyen Quang | TQ | historical_63 | 2,023 | final | count | 167 | 55 | 141 |
8 | Tuyen Quang | TQ | historical_63 | 2,024 | final | count | 172 | 66 | 143 |
10 | Lao Cai | LCA | historical_63 | 2,022 | final | count | 66 | 33 | 63 |
10 | Lao Cai | LCA | historical_63 | 2,023 | final | count | 177 | 63 | 209 |
10 | Lao Cai | LCA | historical_63 | 2,024 | final | count | 224 | 71 | 210 |
11 | Dien Bien | DB | historical_63 | 2,022 | final | count | 25 | 18 | 17 |
11 | Dien Bien | DB | historical_63 | 2,023 | final | count | 103 | 21 | 109 |
11 | Dien Bien | DB | historical_63 | 2,024 | final | count | 97 | 30 | 101 |
12 | Lai Chau | LC | historical_63 | 2,022 | final | count | 47 | 21 | 42 |
12 | Lai Chau | LC | historical_63 | 2,023 | final | count | 52 | 23 | 55 |
12 | Lai Chau | LC | historical_63 | 2,024 | final | count | 63 | 24 | 60 |
14 | Son La | SL | historical_63 | 2,022 | final | count | 35 | 31 | 36 |
14 | Son La | SL | historical_63 | 2,023 | final | count | 168 | 122 | 184 |
14 | Son La | SL | historical_63 | 2,024 | final | count | 155 | 100 | 136 |
15 | Yen Bai | YB | historical_63 | 2,022 | final | count | 118 | 46 | 120 |
15 | Yen Bai | YB | historical_63 | 2,023 | final | count | 143 | 56 | 139 |
15 | Yen Bai | YB | historical_63 | 2,024 | final | count | 157 | 73 | 141 |
17 | Hoa Binh | HB | historical_63 | 2,022 | final | count | 100 | 71 | 96 |
17 | Hoa Binh | HB | historical_63 | 2,023 | final | count | 236 | 108 | 207 |
17 | Hoa Binh | HB | historical_63 | 2,024 | final | count | 234 | 114 | 187 |
19 | Thai Nguyen | TNG | historical_63 | 2,022 | final | count | 136 | 39 | 125 |
19 | Thai Nguyen | TNG | historical_63 | 2,023 | final | count | 423 | 125 | 363 |
19 | Thai Nguyen | TNG | historical_63 | 2,024 | final | count | 715 | 116 | 719 |
20 | Lang Son | LS | historical_63 | 2,022 | final | count | 55 | 40 | 30 |
20 | Lang Son | LS | historical_63 | 2,023 | final | count | 278 | 105 | 272 |
20 | Lang Son | LS | historical_63 | 2,024 | final | count | 491 | 103 | 443 |
22 | Quang Ninh | QN | historical_63 | 2,022 | final | count | 92 | 51 | 73 |
22 | Quang Ninh | QN | historical_63 | 2,023 | final | count | 431 | 222 | 336 |
22 | Quang Ninh | QN | historical_63 | 2,024 | final | count | 532 | 248 | 464 |
24 | Bac Giang | BG | historical_63 | 2,022 | final | count | 267 | 131 | 186 |
24 | Bac Giang | BG | historical_63 | 2,023 | final | count | 390 | 230 | 224 |
24 | Bac Giang | BG | historical_63 | 2,024 | final | count | 335 | 195 | 190 |
25 | Phu Tho | PT | historical_63 | 2,022 | final | count | 57 | 53 | 25 |
25 | Phu Tho | PT | historical_63 | 2,023 | final | count | 339 | 202 | 268 |
25 | Phu Tho | PT | historical_63 | 2,024 | final | count | 352 | 177 | 230 |
26 | Vinh Phuc | VP | historical_63 | 2,022 | final | count | 40 | 30 | 25 |
26 | Vinh Phuc | VP | historical_63 | 2,023 | final | count | 313 | 157 | 250 |
26 | Vinh Phuc | VP | historical_63 | 2,024 | final | count | 322 | 169 | 280 |
27 | Bac Ninh | BN | historical_63 | 2,022 | final | count | 84 | 62 | 31 |
27 | Bac Ninh | BN | historical_63 | 2,023 | final | count | 495 | 231 | 329 |
27 | Bac Ninh | BN | historical_63 | 2,024 | final | count | 412 | 185 | 251 |
30 | Hai Duong | HD | historical_63 | 2,022 | final | count | 157 | 127 | 68 |
30 | Hai Duong | HD | historical_63 | 2,023 | final | count | 430 | 212 | 286 |
30 | Hai Duong | HD | historical_63 | 2,024 | final | count | 710 | 238 | 599 |
31 | Hai Phong | HP | historical_63 | 2,022 | final | count | 65 | 51 | 22 |
31 | Hai Phong | HP | historical_63 | 2,023 | final | count | 538 | 260 | 395 |
31 | Hai Phong | HP | historical_63 | 2,024 | final | count | 497 | 224 | 366 |
33 | Hung Yen | HY | historical_63 | 2,022 | final | count | 148 | 108 | 121 |
33 | Hung Yen | HY | historical_63 | 2,023 | final | count | 600 | 176 | 419 |
33 | Hung Yen | HY | historical_63 | 2,024 | final | count | 540 | 204 | 452 |
34 | Thai Binh | TB | historical_63 | 2,022 | final | count | 132 | 60 | 97 |
34 | Thai Binh | TB | historical_63 | 2,023 | final | count | 363 | 210 | 199 |
34 | Thai Binh | TB | historical_63 | 2,024 | final | count | 365 | 212 | 203 |
35 | Ha Nam | HNA | historical_63 | 2,022 | final | count | 120 | 63 | 74 |
35 | Ha Nam | HNA | historical_63 | 2,023 | final | count | 282 | 138 | 222 |
35 | Ha Nam | HNA | historical_63 | 2,024 | final | count | 295 | 150 | 220 |
36 | Nam Dinh | ND | historical_63 | 2,022 | final | count | 107 | 45 | 87 |
36 | Nam Dinh | ND | historical_63 | 2,023 | final | count | 320 | 175 | 202 |
36 | Nam Dinh | ND | historical_63 | 2,024 | final | count | 292 | 180 | 164 |
37 | Ninh Binh | NB | historical_63 | 2,022 | final | count | 105 | 35 | 91 |
37 | Ninh Binh | NB | historical_63 | 2,023 | final | count | 185 | 102 | 135 |
37 | Ninh Binh | NB | historical_63 | 2,024 | final | count | 194 | 103 | 132 |
38 | Thanh Hoa | TH | historical_63 | 2,022 | final | count | 316 | 123 | 288 |
38 | Thanh Hoa | TH | historical_63 | 2,023 | final | count | 894 | 419 | 766 |
38 | Thanh Hoa | TH | historical_63 | 2,024 | final | count | 893 | 406 | 720 |
40 | Nghe An | NAN | historical_63 | 2,022 | final | count | 159 | 110 | 101 |
40 | Nghe An | NAN | historical_63 | 2,023 | final | count | 418 | 252 | 302 |
40 | Nghe An | NAN | historical_63 | 2,024 | final | count | 364 | 208 | 244 |
42 | Ha Tinh | HT | historical_63 | 2,022 | final | count | 109 | 91 | 46 |
42 | Ha Tinh | HT | historical_63 | 2,023 | final | count | 357 | 190 | 221 |
42 | Ha Tinh | HT | historical_63 | 2,024 | final | count | 402 | 226 | 237 |
44 | Quang Binh | QB | historical_63 | 2,022 | final | count | 117 | 65 | 95 |
44 | Quang Binh | QB | historical_63 | 2,023 | final | count | 219 | 115 | 153 |
44 | Quang Binh | QB | historical_63 | 2,024 | final | count | 196 | 112 | 127 |
45 | Quang Tri | QT | historical_63 | 2,022 | final | count | 194 | 102 | 163 |
45 | Quang Tri | QT | historical_63 | 2,023 | final | count | 209 | 88 | 171 |
45 | Quang Tri | QT | historical_63 | 2,024 | final | count | 209 | 109 | 152 |
46 | Thua Thien Hue | TTH | historical_63 | 2,022 | final | count | 433 | 181 | 329 |
46 | Thua Thien Hue | TTH | historical_63 | 2,023 | final | count | 648 | 117 | 493 |
46 | Thua Thien Hue | TTH | historical_63 | 2,024 | final | count | 439 | 120 | 345 |
48 | Da Nang | DNA | historical_63 | 2,022 | final | count | 82 | 56 | 56 |
48 | Da Nang | DNA | historical_63 | 2,023 | final | count | 552 | 111 | 510 |
48 | Da Nang | DNA | historical_63 | 2,024 | final | count | 571 | 135 | 528 |
49 | Quang Nam | QNA | historical_63 | 2,022 | final | count | 156 | 136 | 91 |
End of preview.
Vietnam traffic accidents
Vietnam traffic accidents. Geographic labels are English (UN/GSO style ASCII romanization). Tables cover provinces, regions and national total where present. Province names follow ar_core.vn_geo (historical 63-province system).
Files
provinces (189 rows)
data/provinces.csvdata/provinces.dtadata/provinces.xlsx
regions (18 rows)
data/regions.csvdata/regions.dtadata/regions.xlsx
national (3 rows)
data/national.csvdata/national.dtadata/national.xlsx
Load
Stata:
use "data/provinces.dta", clear
R:
df <- read.csv("data/provinces.csv")
SPSS: open the .xlsx or .csv file.
Source
National Statistics Office of Vietnam (NSO/GSO). Original table title: Mot so chi tieu ve tai nan giao thong phan theo dia phuong. Cleaned long panel for research use.
Citation
@misc{nso_vn_provinces_traffic_accidents,
title = {Vietnam traffic accidents},
author = {{National Statistics Office of Vietnam}},
note = {Unit/measures: count.},
year = {2024}
}
Built 2026-09-13 UTC.
- Downloads last month
- 42