From b81c5e227342800733caac22559c45fb8ff66c32 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Tue, 9 Apr 2024 15:15:36 +0100 Subject: [PATCH] fixup! import council level IMD data --- hub/management/commands/import_council_imd_data.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hub/management/commands/import_council_imd_data.py b/hub/management/commands/import_council_imd_data.py index b2dcc4170..9e849d576 100644 --- a/hub/management/commands/import_council_imd_data.py +++ b/hub/management/commands/import_council_imd_data.py @@ -17,11 +17,11 @@ class Command(MultipleAreaTypesMixin, BaseImportFromDataFrameCommand): do_not_convert = True data_sets = { - "council_imd": { + "constituency_imd": { "defaults": { "source": "https://mysociety.github.io/composite_uk_imd/", "source_label": "Data from ONS (England and Wales), NRS (Scotland), and NISRA (Northern Ireland), collated and standardised by mySociety.", - "name": "council_imd", + "name": "constituency_imd", "description": "Deciles of deprivation, from 1 (most deprived) to 10 (least deprived). This uses a composite measure of deprivation (including income, employment, education, skills, health, crime, and housing) standardised across the countries of the UK.", "label": "Index of Multiple Deprivation (IMD)", "data_type": "integer", @@ -55,10 +55,10 @@ def __init__(self): done_survey=True, ) - self.data_sets["council_imd"]["defaults"]["data_url"] = url + self.data_sets["constituency_imd"]["defaults"]["data_url"] = url def get_dataframe(self): - df = pd.read_csv(self.data_sets["council_imd"]["defaults"]["data_url"]) + df = pd.read_csv(self.data_sets["constituency_imd"]["defaults"]["data_url"]) df = add_gss_codes(df, "local-authority-code") df = filter_authority_type(df, self.area_type, self.cons_row)