diff --git a/etl/epc_clean/EpcClean.py b/etl/epc_clean/EpcClean.py index 4b1beebe..64bcea91 100644 --- a/etl/epc_clean/EpcClean.py +++ b/etl/epc_clean/EpcClean.py @@ -75,9 +75,6 @@ class EpcClean: ] ] - # Average - filtered_data.groupby("lighting-description")["low-energy-lighting"].mean().reset_index() - # Convert low-energy-lighting to float for row in filtered_data: row["low-energy-lighting"] = float(row["low-energy-lighting"]) @@ -93,7 +90,7 @@ class EpcClean: # Scale to between 0 and 1 averages = [{ - "lighting-description": correct_spelling(description.lower()) / 100, + "lighting-description": correct_spelling(description.lower()), "low-energy-lighting": total / counts[description] / 100 } for description, total in sums.items()] diff --git a/recommendations/county_to_region.py b/recommendations/county_to_region.py index b11f0de1..b6b74ee4 100644 --- a/recommendations/county_to_region.py +++ b/recommendations/county_to_region.py @@ -164,6 +164,7 @@ county_to_region_map = { 'Wakefield': 'Yorkshire and the Humber', 'West Yorkshire': 'Yorkshire and the Humber', 'York': 'Yorkshire and the Humber', 'Westmorland': 'North West England', + 'Westmorland and Furness': 'North West England', # Additional mappings requried, based on what we find in the EPC database 'Greater London Authority': 'Inner London',