From 756bf4b720f4c8184bedb707f9b8dfddb408610c Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Mon, 24 Nov 2025 12:18:01 +0000 Subject: [PATCH] handled not recorded different format --- backend/tests/test_integration.py | 2 +- etl/epc/settings.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/tests/test_integration.py b/backend/tests/test_integration.py index ac61a09c..45dd109a 100644 --- a/backend/tests/test_integration.py +++ b/backend/tests/test_integration.py @@ -93,7 +93,7 @@ costs_by_floor_area = costs_by_floor_area.groupby("current-energy-efficiency")[ epc_data = epc_data[~pd.isnull(epc_data["UPRN"])] sample_epc_data = epc_data[pd.to_datetime(epc_data["LODGEMENT_DATE"]) >= "2015-01-01"].drop_duplicates("UPRN").sample( - 5000).reset_index(drop=True) + 10000).reset_index(drop=True) # TODO: In Property find_energy_sources, sort out biomass community heating - what fuel type # TODO: We might be able to remove find_energy_sources entirely and remove estimate_electrical_consumption. It's used diff --git a/etl/epc/settings.py b/etl/epc/settings.py index 47a75def..16619fa2 100644 --- a/etl/epc/settings.py +++ b/etl/epc/settings.py @@ -20,6 +20,7 @@ DATA_ANOMALY_MATCHES = { # certificate retrieval process is successfully completed. Mandatory data items cannot be applied # retrospectively to energy certificates lodged before the date of the change. "Not recorded", + "Not Recorded", # The data also contains DECs with an operational rating of ‘9999’ (a ‘default’ DEC). The production of a # ‘default’ DEC value was allowed to enable building occupiers, with poor quality or no energy data, # the opportunity to comply with the regulations. From April 2011 the ability to lodge a ‘default’ DEC was no