{"id":20354766,"url":"https://github.com/datasets/cpi-gb","last_synced_at":"2026-03-06T02:06:13.490Z","repository":{"id":6041521,"uuid":"7266012","full_name":"datasets/cpi-gb","owner":"datasets","description":"Consumer Price Index (and hence inflation) for the UK from 1850 to the present (monthly since June 1947). ","archived":false,"fork":false,"pushed_at":"2026-03-01T02:48:57.000Z","size":57,"stargazers_count":10,"open_issues_count":0,"forks_count":9,"subscribers_count":6,"default_branch":"main","last_synced_at":"2026-03-01T05:59:56.255Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datasets.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2012-12-20T23:23:07.000Z","updated_at":"2026-03-01T02:49:01.000Z","dependencies_parsed_at":"2025-04-12T02:36:56.789Z","dependency_job_id":"286799a5-7373-4e9e-bdbd-d284b2539959","html_url":"https://github.com/datasets/cpi-gb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/datasets/cpi-gb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datasets%2Fcpi-gb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datasets%2Fcpi-gb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datasets%2Fcpi-gb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datasets%2Fcpi-gb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datasets","download_url":"https://codeload.github.com/datasets/cpi-gb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datasets%2Fcpi-gb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30158928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T22:39:40.138Z","status":"online","status_checked_at":"2026-03-06T02:00:08.268Z","response_time":250,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T23:09:36.387Z","updated_at":"2026-03-06T02:06:13.474Z","avatar_url":"https://github.com/datasets.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca className=\"gh-badge\" href=\"https://datahub.io/core/cpi-gb\"\u003e\u003cimg src=\"https://badgen.net/badge/icon/View%20on%20datahub.io/orange?icon=https://datahub.io/datahub-cube-badge-icon.svg\u0026label\u0026scale=1.25\" alt=\"badge\" /\u003e\u003c/a\u003e\n\nConsumer Price Index (and hence inflation) for the UK from 1850 to the present (monthly since June 1947).\n\n## Data\n\nKey source files are:\n\n* [Price Index 1800 to Present](https://www.ons.gov.uk/generator?format=csv\u0026uri=/economy/inflationandpriceindices/timeseries/cdko/mm23)\n* [Inflation 1800 to Present](https://www.ons.gov.uk/generator?format=csv\u0026uri=/economy/inflationandpriceindices/timeseries/cdko/mm23)\n\nWe take these and just to a split out of annual from monthly and some tidying of the date format (see scripts/process.js).\n\n### Processing\n\nFirst do:\n\n    curl \"http://www.ons.gov.uk/ons/datasets-and-tables/downloads/csv.csv?dataset=mm23\u0026cdid=CDKO\" \u003e cache/cpi-uk.csv\n\nThen run the processing script to split out monthly and annual (they put them in the same file ...):\n\n    node scripts/process.js\n\n## Rant\n\nWhy is it always so complicated to get data. A quick search on the interwebs yields: http://www.ons.gov.uk/ons/rel/cpi/consumer-price-indices/october-2012/cpi-time-series-data.html\n\nBut this turns out to be so big that it does not open in a spreadsheet programme (if you take CSV). In addition all the series descriptions are mixed in at the bottom of the file so this is not machine processable!\n\nLet's try instead to go for the series selector to try and break it down: http://www.ons.gov.uk/ons/datasets-and-tables/data-selector.html?dataset=mm23\n\nBut this is about 20 different series - which one do you want? Make an educated guess and repeat each time you're wrong!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatasets%2Fcpi-gb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatasets%2Fcpi-gb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatasets%2Fcpi-gb/lists"}