Datasets:
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 10 new columns ({'geo_code', 'geo_name', 'has_pci_weighted', 'has_pci_total', 'geo_system', 'geo_short', 'source_province_raw', 'n_score_values', 'year', 'schema_era'}) and 7 missing columns ({'label_en', 'n_years', 'year_end', 'schema_key', 'indicator', 'year_start', 'level'}).
This happened while the csv dataset builder was generating data using
hf://datasets/letrinhan/vn-pci-provincial/data/coverage.csv (at revision 4fcb6c4dd19710d6b4565d66a83ccfa467ea1c39), ['hf://datasets/letrinhan/vn-pci-provincial@4fcb6c4dd19710d6b4565d66a83ccfa467ea1c39/data/codebook.csv', 'hf://datasets/letrinhan/vn-pci-provincial@4fcb6c4dd19710d6b4565d66a83ccfa467ea1c39/data/coverage.csv', 'hf://datasets/letrinhan/vn-pci-provincial@4fcb6c4dd19710d6b4565d66a83ccfa467ea1c39/data/provinces_long.csv', 'hf://datasets/letrinhan/vn-pci-provincial@4fcb6c4dd19710d6b4565d66a83ccfa467ea1c39/data/provinces_wide.csv', 'hf://datasets/letrinhan/vn-pci-provincial@4fcb6c4dd19710d6b4565d66a83ccfa467ea1c39/data/year_meta.csv']
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
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 2306, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
geo_code: int64
geo_name: string
geo_short: string
geo_system: string
year: int64
schema_era: string
n_score_values: int64
has_pci_total: bool
has_pci_weighted: bool
source_province_raw: string
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 1483
to
{'indicator': Value('string'), 'level': Value('string'), 'label_en': Value('string'), 'schema_key': Value('string'), 'year_start': Value('int64'), 'year_end': Value('int64'), 'n_years': Value('int64')}
because column names don't match
During handling of the above exception, another exception occurred:
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 1850, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
...<4 lines>...
)
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 10 new columns ({'geo_code', 'geo_name', 'has_pci_weighted', 'has_pci_total', 'geo_system', 'geo_short', 'source_province_raw', 'n_score_values', 'year', 'schema_era'}) and 7 missing columns ({'label_en', 'n_years', 'year_end', 'schema_key', 'indicator', 'year_start', 'level'}).
This happened while the csv dataset builder was generating data using
hf://datasets/letrinhan/vn-pci-provincial/data/coverage.csv (at revision 4fcb6c4dd19710d6b4565d66a83ccfa467ea1c39), ['hf://datasets/letrinhan/vn-pci-provincial@4fcb6c4dd19710d6b4565d66a83ccfa467ea1c39/data/codebook.csv', 'hf://datasets/letrinhan/vn-pci-provincial@4fcb6c4dd19710d6b4565d66a83ccfa467ea1c39/data/coverage.csv', 'hf://datasets/letrinhan/vn-pci-provincial@4fcb6c4dd19710d6b4565d66a83ccfa467ea1c39/data/provinces_long.csv', 'hf://datasets/letrinhan/vn-pci-provincial@4fcb6c4dd19710d6b4565d66a83ccfa467ea1c39/data/provinces_wide.csv', 'hf://datasets/letrinhan/vn-pci-provincial@4fcb6c4dd19710d6b4565d66a83ccfa467ea1c39/data/year_meta.csv']
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)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.
indicator string | level string | label_en string | schema_key string | year_start int64 | year_end int64 | n_years int64 |
|---|---|---|---|---|---|---|
pci_total | aggregate | Canonical PCI total (weighted/final when available) | pci_total | 2,006 | 2,024 | 19 |
pci_unweighted | aggregate | Unweighted PCI (sum of subindices) | pci_unweighted | 2,006 | 2,024 | 19 |
pci_weighted | aggregate | Weighted / final PCI | pci_weighted | 2,007 | 2,024 | 18 |
pci_weighted_multiple | aggregate | Weighted PCI (multiple DVs) | null | 2,006 | 2,006 | 1 |
pci_weighted_rounded | aggregate | Weighted PCI (rounded weights) | null | 2,006 | 2,006 | 1 |
pci_rank | rank | PCI provincial ranking (1=best) | pci_rank | 2,006 | 2,024 | 19 |
entry | subindex | Entry costs | entry | 2,006 | 2,024 | 19 |
informal_charges | subindex | Informal charges | informal | 2,006 | 2,024 | 19 |
infrastructure | subindex | Infrastructure | infrastructure | 2,009 | 2,011 | 3 |
labor_training | subindex | Labor training | labor | 2,006 | 2,024 | 19 |
land | subindex | Land access and security of tenure | land | 2,006 | 2,024 | 19 |
legal_institutions | subindex | Legal institutions | legal | 2,006 | 2,024 | 19 |
proactivity | subindex | Proactivity of provincial leadership | proactivity | 2,006 | 2,024 | 19 |
psd_services | subindex | Private-sector development services | psd | 2,006 | 2,024 | 19 |
soe_bias | subindex | Bias toward state-owned enterprises | soebias | 2,006 | 2,024 | 15 |
time_costs | subindex | Time costs / regulatory compliance | time_costs | 2,006 | 2,024 | 19 |
transparency | subindex | Transparency and access to information | transparency | 2,006 | 2,024 | 19 |
pci_weight_sum_multiple | weight_component | Sum using multiple-DV weights | null | 2,006 | 2,006 | 1 |
pci_weight_sum_rounded | weight_component | Sum using rounded weights | null | 2,006 | 2,006 | 1 |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
null | null | null | null | null | null | null |
Vietnam PCI provincial competitiveness scores (2006-2024)
Multi-year Provincial Competitiveness Index (PCI) panel for Vietnam, 2006-2024. Subindex scores, unweighted sums, and official weighted/final totals where VCCI publishes them. Geography normalized to the historical 63-province system (64 through 2008 including Ha Tay) via ar_core.vn_geo. Schema eras noted (SOE bias / infrastructure breaks). For 2023-2024, full PCI totals are public for the top-30 only. remaining provinces keep complete subindices with missing weighted/total/rank.
Files
provinces_long (16731 rows)
data/provinces_long.csvdata/provinces_long.dtadata/provinces_long.xlsx
provinces_wide (1200 rows)
data/provinces_wide.csvdata/provinces_wide.dtadata/provinces_wide.xlsx
codebook (19 rows)
data/codebook.csvdata/codebook.dtadata/codebook.xlsx
coverage (1200 rows)
data/coverage.csvdata/coverage.dtadata/coverage.xlsx
year_meta (19 rows)
data/year_meta.csvdata/year_meta.dtadata/year_meta.xlsx
Load
Stata:
use "data/provinces_long.dta", clear
R:
df <- read.csv("data/provinces_long.csv")
SPSS: open the .xlsx or .csv file.
Source
Upstream: Vietnam Chamber of Commerce and Industry (VCCI) - Provincial Competitiveness Index (PCI), https://pcivietnam.vn. Annual provincial indicator appendices cleaned and geo-normalized for research use. 2023-2024 top-N weighted totals also cross-checked against the official ranking table on pcivietnam.vn. Please review VCCI PCI citation / use terms before commercial redistribution. cite the official PCI reports for the survey years you use.
Raw originals
Unmodified upstream source files are under raw/ for verification (see raw/README.md). Clean tables remain under data/.
Citation
@misc{pci_vn_provinces_panel,
title = {Vietnam PCI provincial competitiveness scores (2006--2024)},
author = {{Vietnam Chamber of Commerce and Industry (VCCI)}},
howpublished = {\url{https://pcivietnam.vn}},
note = {Cleaned multi-year province panel; schema breaks 2009 and 2013; top-N weighted only in 2023--2024},
year = {2024}
}
Built 2026-09-14 UTC.
- Downloads last month
- 38