The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
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 float64 | value_status string | unit string |
|---|---|---|---|---|---|---|---|
0 | Viet Nam | VN | national | 2,018 | 73.49 | final | years |
0 | Viet Nam | VN | national | 2,019 | 73.6 | final | years |
0 | Viet Nam | VN | national | 2,020 | 73.66 | final | years |
0 | Viet Nam | VN | national | 2,021 | 73.64 | final | years |
0 | Viet Nam | VN | national | 2,022 | 73.64 | final | years |
0 | Viet Nam | VN | national | 2,023 | 74.5 | final | years |
0 | Viet Nam | VN | national | 2,024 | 74.7 | preliminary | years |
1 | Ha Noi | HN | historical_63 | 2,018 | 75.4 | final | years |
1 | Ha Noi | HN | historical_63 | 2,019 | 75.47 | final | years |
1 | Ha Noi | HN | historical_63 | 2,020 | 75.47 | final | years |
1 | Ha Noi | HN | historical_63 | 2,021 | 75.66 | final | years |
1 | Ha Noi | HN | historical_63 | 2,022 | 76.04 | final | years |
1 | Ha Noi | HN | historical_63 | 2,023 | 76.13 | final | years |
1 | Ha Noi | HN | historical_63 | 2,024 | 76.63 | preliminary | years |
2 | Ha Giang | HG | historical_63 | 2,018 | 67.74 | final | years |
2 | Ha Giang | HG | historical_63 | 2,019 | 67.88 | final | years |
2 | Ha Giang | HG | historical_63 | 2,020 | 68.4 | final | years |
2 | Ha Giang | HG | historical_63 | 2,021 | 68.78 | final | years |
2 | Ha Giang | HG | historical_63 | 2,022 | 68.78 | final | years |
2 | Ha Giang | HG | historical_63 | 2,023 | 71.48 | final | years |
2 | Ha Giang | HG | historical_63 | 2,024 | 71.41 | preliminary | years |
4 | Cao Bang | CB | historical_63 | 2,018 | 70.46 | final | years |
4 | Cao Bang | CB | historical_63 | 2,019 | 70.6 | final | years |
4 | Cao Bang | CB | historical_63 | 2,020 | 70.56 | final | years |
4 | Cao Bang | CB | historical_63 | 2,021 | 71.36 | final | years |
4 | Cao Bang | CB | historical_63 | 2,022 | 71.36 | final | years |
4 | Cao Bang | CB | historical_63 | 2,023 | 72.31 | final | years |
4 | Cao Bang | CB | historical_63 | 2,024 | 72.24 | preliminary | years |
6 | Bac Kan | BK | historical_63 | 2,018 | 72.49 | final | years |
6 | Bac Kan | BK | historical_63 | 2,019 | 72.62 | final | years |
6 | Bac Kan | BK | historical_63 | 2,020 | 72.58 | final | years |
6 | Bac Kan | BK | historical_63 | 2,021 | 72.59 | final | years |
6 | Bac Kan | BK | historical_63 | 2,022 | 72.59 | final | years |
6 | Bac Kan | BK | historical_63 | 2,023 | 72.95 | final | years |
6 | Bac Kan | BK | historical_63 | 2,024 | 72.88 | preliminary | years |
8 | Tuyen Quang | TQ | historical_63 | 2,018 | 72.15 | final | years |
8 | Tuyen Quang | TQ | historical_63 | 2,019 | 72.25 | final | years |
8 | Tuyen Quang | TQ | historical_63 | 2,020 | 72.28 | final | years |
8 | Tuyen Quang | TQ | historical_63 | 2,021 | 72.18 | final | years |
8 | Tuyen Quang | TQ | historical_63 | 2,022 | 72.18 | final | years |
8 | Tuyen Quang | TQ | historical_63 | 2,023 | 73.02 | final | years |
8 | Tuyen Quang | TQ | historical_63 | 2,024 | 72.96 | preliminary | years |
10 | Lao Cai | LCA | historical_63 | 2,018 | 69.01 | final | years |
10 | Lao Cai | LCA | historical_63 | 2,019 | 69.16 | final | years |
10 | Lao Cai | LCA | historical_63 | 2,020 | 69.26 | final | years |
10 | Lao Cai | LCA | historical_63 | 2,021 | 69.96 | final | years |
10 | Lao Cai | LCA | historical_63 | 2,022 | 69.96 | final | years |
10 | Lao Cai | LCA | historical_63 | 2,023 | 71.34 | final | years |
10 | Lao Cai | LCA | historical_63 | 2,024 | 71.27 | preliminary | years |
11 | Dien Bien | DB | historical_63 | 2,018 | 67.69 | final | years |
11 | Dien Bien | DB | historical_63 | 2,019 | 67.83 | final | years |
11 | Dien Bien | DB | historical_63 | 2,020 | 68.44 | final | years |
11 | Dien Bien | DB | historical_63 | 2,021 | 68.44 | final | years |
11 | Dien Bien | DB | historical_63 | 2,022 | 68.44 | final | years |
11 | Dien Bien | DB | historical_63 | 2,023 | 69.89 | final | years |
11 | Dien Bien | DB | historical_63 | 2,024 | 69.8 | preliminary | years |
12 | Lai Chau | LC | historical_63 | 2,018 | 65.66 | final | years |
12 | Lai Chau | LC | historical_63 | 2,019 | 65.83 | final | years |
12 | Lai Chau | LC | historical_63 | 2,020 | 66.69 | final | years |
12 | Lai Chau | LC | historical_63 | 2,021 | 67.9 | final | years |
12 | Lai Chau | LC | historical_63 | 2,022 | 67.9 | final | years |
12 | Lai Chau | LC | historical_63 | 2,023 | 69.82 | final | years |
12 | Lai Chau | LC | historical_63 | 2,024 | 65.83 | preliminary | years |
14 | Son La | SL | historical_63 | 2,018 | 70.78 | final | years |
14 | Son La | SL | historical_63 | 2,019 | 70.9 | final | years |
14 | Son La | SL | historical_63 | 2,020 | 70.96 | final | years |
14 | Son La | SL | historical_63 | 2,021 | 70.94 | final | years |
14 | Son La | SL | historical_63 | 2,022 | 70.94 | final | years |
14 | Son La | SL | historical_63 | 2,023 | 73.43 | final | years |
14 | Son La | SL | historical_63 | 2,024 | 73.38 | preliminary | years |
15 | Yen Bai | YB | historical_63 | 2,018 | 69.54 | final | years |
15 | Yen Bai | YB | historical_63 | 2,019 | 69.68 | final | years |
15 | Yen Bai | YB | historical_63 | 2,020 | 69.56 | final | years |
15 | Yen Bai | YB | historical_63 | 2,021 | 69.66 | final | years |
15 | Yen Bai | YB | historical_63 | 2,022 | 69.66 | final | years |
15 | Yen Bai | YB | historical_63 | 2,023 | 71.69 | final | years |
15 | Yen Bai | YB | historical_63 | 2,024 | 71.61 | preliminary | years |
17 | Hoa Binh | HB | historical_63 | 2,018 | 72.57 | final | years |
17 | Hoa Binh | HB | historical_63 | 2,019 | 72.66 | final | years |
17 | Hoa Binh | HB | historical_63 | 2,020 | 72.6 | final | years |
17 | Hoa Binh | HB | historical_63 | 2,021 | 72.69 | final | years |
17 | Hoa Binh | HB | historical_63 | 2,022 | 72.69 | final | years |
17 | Hoa Binh | HB | historical_63 | 2,023 | 73.36 | final | years |
17 | Hoa Binh | HB | historical_63 | 2,024 | 73.3 | preliminary | years |
19 | Thai Nguyen | TNG | historical_63 | 2,018 | 73.53 | final | years |
19 | Thai Nguyen | TNG | historical_63 | 2,019 | 73.62 | final | years |
19 | Thai Nguyen | TNG | historical_63 | 2,020 | 73.68 | final | years |
19 | Thai Nguyen | TNG | historical_63 | 2,021 | 73.7 | final | years |
19 | Thai Nguyen | TNG | historical_63 | 2,022 | 73.7 | final | years |
19 | Thai Nguyen | TNG | historical_63 | 2,023 | 74.53 | final | years |
19 | Thai Nguyen | TNG | historical_63 | 2,024 | 74.48 | preliminary | years |
20 | Lang Son | LS | historical_63 | 2,018 | 72.24 | final | years |
20 | Lang Son | LS | historical_63 | 2,019 | 72.35 | final | years |
20 | Lang Son | LS | historical_63 | 2,020 | 72.42 | final | years |
20 | Lang Son | LS | historical_63 | 2,021 | 72.45 | final | years |
20 | Lang Son | LS | historical_63 | 2,022 | 72.45 | final | years |
20 | Lang Son | LS | historical_63 | 2,023 | 73.06 | final | years |
20 | Lang Son | LS | historical_63 | 2,024 | 73 | preliminary | years |
22 | Quang Ninh | QN | historical_63 | 2,018 | 73.4 | final | years |
22 | Quang Ninh | QN | historical_63 | 2,019 | 73.49 | final | years |
Vietnam provinces life expectancy at birth
Life expectancy at birth (years). Coverage 2018-2024. Year 2024 is preliminary. 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 (441 rows)
data/provinces.csvdata/provinces.dtadata/provinces.xlsx
regions (42 rows)
data/regions.csvdata/regions.dtadata/regions.xlsx
national (7 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: Tuoi tho trung binh tinh tu luc sinh phan theo dia phuong. Cleaned long panel for research use.
Raw originals
Unmodified upstream source files are under raw/ for verification (see raw/README.md). Clean tables remain under data/.
Citation
@misc{nso_vn_provinces_life_expectancy,
title = {Vietnam provinces life expectancy at birth},
author = {{National Statistics Office of Vietnam}},
note = {Unit: years.},
year = {2024}
}
Built 2026-09-14 UTC.
- Downloads last month
- 59