Data and code for China's potassium chloride import vulnerability: Supplier structure, conditional exposure and unit values, 2017–2024
Description
This replication package supports a study of China's potassium chloride imports (HS 310420) during 2017–2024. It contains a checked transcription of 117 partner-year observations and eight World totals from UN Comtrade as displayed through World Bank WITS, source and partner-mapping files, Python calculation and plotting scripts, and reproducible output tables and figures. The analysis covers import-source concentration, conditional supplier exposure, symmetric scale–share decomposition, source reallocation, and five-, seven- and nine-group import-unit-value decomposition. The package reproduces six manuscript tables, five main figures and two supplementary figures. Source data were transcribed on 20 October 2026 and checked against the public pages on 21 October 2026. Results describe accounting relationships and illustrative supply reductions, not observed shortages or causal effects. Source attribution, units, rounding conventions and third-party-data terms are documented in the accompanying files.
Files
Steps to reproduce
Download and extract RP_Data_and_Code.zip. Use Python 3.11 or later. Open a terminal in the extracted RP_Data_and_Code folder and run: python -m pip install -r requirements.txt python code/reproduce.py To reproduce numerical results without plotting dependencies, run: python code/reproduce.py --no-figures The program reads the included data and generates six tables, five main figures and two supplementary figures in the results folder. Validation checks print PASS upon successful completion. No external data download or API key is required. See README.md and DATA_DICTIONARY.md for details.
Institutions
- China University of Geosciences (Beijing)Beijing, Beijing