Skip to content

Commit

Permalink
Added parl2025 imd scores
Browse files Browse the repository at this point in the history
  • Loading branch information
ajparsons committed Aug 10, 2023
1 parent 5b2d89b commit f739f80
Show file tree
Hide file tree
Showing 13 changed files with 2,487 additions and 65 deletions.
7 changes: 5 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"python.linting.pylintEnabled": true,
"python.defaultInterpreterPath": "/usr/local/bin/python",
"python.terminal.activateEnvironment": false,
"python.formatting.provider": "black",
"python.formatting.provider": "none",
"python.analysis.typeCheckingMode": "basic",
"python.analysis.stubPath": "src/data_common/typing",
"editor.formatOnSave": true,
Expand Down Expand Up @@ -42,5 +42,8 @@
"tests/"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
"python.testing.pytestEnabled": true,
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
}
}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/mysociety/data_common:sha-54e0768
FROM ghcr.io/mysociety/data_common:sha-8627dc0

# Make an empty project directory so the 'self' setup doesn't fail and scripts can be setup
# Override the .pth created at previous stages to point to where the working directory will land
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/mysociety/data_common:sha-54e0768
FROM ghcr.io/mysociety/data_common:sha-8627dc0

# Make an empty project directory so the 'self' setup doesn't fail and scripts can be setup
# Override the .pth created at previous stages to point to where the working directory will land
Expand Down
2 changes: 1 addition & 1 deletion data/packages/uk_index/constituency_imd.resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ schema:
- name: medium-deprivation
type: number
description: Proportion of constituency population living in a low deprivation
losa (quintile 2,3 )
losa (quintile 2,3)
constraints:
unique: true
example: 0.0305634644451474
Expand Down
651 changes: 651 additions & 0 deletions data/packages/uk_index/parl25_imd.csv

Large diffs are not rendered by default.

106 changes: 106 additions & 0 deletions data/packages/uk_index/parl25_imd.resource.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
title: Constituencies (2025) by IMD
description: Composite IMD scores and bandings for 2025 Constituencies
custom:
row_count: 650
path: parl25_imd.csv
name: parl25_imd
profile: tabular-data-resource
scheme: file
format: csv
hashing: md5
encoding: utf-8
schema:
fields:
- name: parl25
type: string
description: short code for constituency as used in https://pages.mysociety.org/2025-constituencies/datasets/parliament_con_2025/latest
constraints:
unique: true
example: UKPARL.2025.AAD
- name: constituency-name
type: string
description: name of constituency
constraints:
unique: true
example: Aberafan Maesteg
- name: parl25-deprivation-score
type: number
description: IMD score for constituency
constraints:
unique: true
example: 5.732661845759454
- name: label
type: string
description: IMD banding for constituency
constraints:
unique: false
enum:
- 1st IMD quintile
- 2nd IMD quintile
- 3rd IMD quintile
- 4th IMD quintile
- 5th IMD quintile
example: 1st IMD quintile
- name: desc
type: string
description: IMD descriptive banding for constituency
constraints:
unique: false
enum:
- Constituencies in most deprived quintile (20%)
- Constituencies in second most deprived quintile (20%)
- Constituencies in middle deprivation quintile (20%)
- Constituencies in second least deprived quintile (20%)
- Constituencies in least deprived quintile (20%)
example: Constituencies in least deprived quintile (20%)
- name: low-deprivation
type: number
description: Proportion of constituency population living in a low deprivation
losa (quintile 4,5)
constraints:
unique: false
example: 0.0
- name: medium-deprivation
type: number
description: Proportion of constituency population living in a low deprivation
losa (quintile 2,3)
constraints:
unique: true
example: 0.0255266784800157
- name: high-deprivation
type: number
description: Proportion of constituency population living in a high deprivation
losa (quintile 1)
constraints:
unique: false
example: 0.0
- name: parl25-imd-pop-quintile
type: integer
description: IMD quintile for constituency
constraints:
unique: false
enum:
- 1
- 2
- 3
- 4
- 5
example: 1
- name: parl25-imd-pop-decile
type: integer
description: IMD decile for constituency
constraints:
unique: false
enum:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
example: 1
hash: e0270ef9b7667f0332a354a499ead450
Loading

0 comments on commit f739f80

Please sign in to comment.