https://github.com/datasets/cpi
Annual consumer price index datapackage for most countries in the world
https://github.com/datasets/cpi
Last synced: about 1 year ago
JSON representation
Annual consumer price index datapackage for most countries in the world
- Host: GitHub
- URL: https://github.com/datasets/cpi
- Owner: datasets
- License: gpl-3.0
- Created: 2013-05-27T14:53:47.000Z (about 13 years ago)
- Default Branch: main
- Last Pushed: 2025-04-01T01:09:16.000Z (about 1 year ago)
- Last Synced: 2025-04-12T02:37:04.723Z (about 1 year ago)
- Language: Python
- Homepage: https://datahub.io/core/cpi
- Size: 374 KB
- Stars: 16
- Watchers: 7
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Annual Consumer Price Index (CPI) for most countries in the world when it has been measured. The reference year is 2005 (meaning the value of CPI for all countries is 100 and all other CPI values are relative to that year).
## Data
The data comes from [The World Bank](http://data.worldbank.org/indicator/FP.CPI.TOTL) and is collected from 1960 to 2011. There are some values missing from data so users of the data will have to *guess* what should be in the empty slots.
The actual download happens via [The World Bank's API (with csv as the requested format)](https://api.worldbank.org/v2/en/indicator/FP.CPI.TOTL.ZG?downloadformat=csv).
## Preparation
It is parsed via the script **cpi2datapackage.py**, located in scripts.
```bash
# Process cpi2datapackage.py
python cpi2datapackage.py
```
## Automation
Up-to-date (auto-updates every month) cpi dataset could be found on the datahub.io:
https://datahub.io/core/cpi
## License
This Data Package is made available under the Public Domain Dedication and License v1.0 whose full text can be found at: http://www.opendatacommons.org/licenses/pddl/1.0/