From 583ae66b24e7d47ef9b76bf80eb9c0759db61eeb Mon Sep 17 00:00:00 2001 From: lucasmbrown-usds Date: Wed, 11 Jan 2023 19:20:16 -0500 Subject: [PATCH] adding fields to downloads --- data/data-pipeline/data_pipeline/content/config/csv.yml | 3 +++ data/data-pipeline/data_pipeline/content/config/excel.yml | 3 +++ data/data-pipeline/data_pipeline/score/field_names.py | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/data/data-pipeline/data_pipeline/content/config/csv.yml b/data/data-pipeline/data_pipeline/content/config/csv.yml index c25e8ff3..f481c991 100644 --- a/data/data-pipeline/data_pipeline/content/config/csv.yml +++ b/data/data-pipeline/data_pipeline/content/config/csv.yml @@ -197,6 +197,9 @@ fields: - score_name: Percent pre-1960s housing (lead paint indicator) label: Percent pre-1960s housing (lead paint indicator) format: percentage +- score_name: Percent pre-1960s housing (lead paint indicator), and the median house value is less than 90th percentile (percentile) + label: Percent pre-1960s housing (lead paint indicator), and the median house value is less than 90th percentile (percentile) + format: percentage - score_name: Median value ($) of owner-occupied housing units (percentile) label: Median value ($) of owner-occupied housing units (percentile) format: percentage diff --git a/data/data-pipeline/data_pipeline/content/config/excel.yml b/data/data-pipeline/data_pipeline/content/config/excel.yml index 75747710..91b1de63 100644 --- a/data/data-pipeline/data_pipeline/content/config/excel.yml +++ b/data/data-pipeline/data_pipeline/content/config/excel.yml @@ -201,6 +201,9 @@ sheets: - score_name: Percent pre-1960s housing (lead paint indicator) label: Percent pre-1960s housing (lead paint indicator) format: percentage + - score_name: Percent pre-1960s housing (lead paint indicator), and the median house value is less than 90th percentile (percentile) + label: Percent pre-1960s housing (lead paint indicator), and the median house value is less than 90th percentile (percentile) + format: percentage - score_name: Median value ($) of owner-occupied housing units (percentile) label: Median value ($) of owner-occupied housing units (percentile) format: percentage diff --git a/data/data-pipeline/data_pipeline/score/field_names.py b/data/data-pipeline/data_pipeline/score/field_names.py index 180811e3..3d210f0b 100644 --- a/data/data-pipeline/data_pipeline/score/field_names.py +++ b/data/data-pipeline/data_pipeline/score/field_names.py @@ -129,7 +129,7 @@ LEAD_PAINT_FIELD = "Percent pre-1960s housing (lead paint indicator)" LEAD_PAINT_HOUSE_VALUE_FIELD_PCTILE = ( LEAD_PAINT_FIELD + ", and" f" the median house value is less than {MEDIAN_HOUSE_VALUE_PERCENTILE}th " - f"percentile " + PERCENTILE_FIELD_SUFFIX + f"percentile" + PERCENTILE_FIELD_SUFFIX ) WASTEWATER_FIELD = "Wastewater discharge" AGGREGATION_POLLUTION_FIELD = "Pollution Burden"