From ed0bbf44c76a1303fac20814875f3e99798ed9bd Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Mon, 22 Jan 2024 12:02:43 +0000 Subject: [PATCH] matching 34% complete --- etl/eligibility/ha_15_32/ha_analysis_batch_3.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etl/eligibility/ha_15_32/ha_analysis_batch_3.py b/etl/eligibility/ha_15_32/ha_analysis_batch_3.py index dfbd4fa4..9cae6e37 100644 --- a/etl/eligibility/ha_15_32/ha_analysis_batch_3.py +++ b/etl/eligibility/ha_15_32/ha_analysis_batch_3.py @@ -153,6 +153,8 @@ class DataLoader: # Correct the asset list asset_list["propertyaddress"] = asset_list["propertyaddress"].str.replace("Baggott Place", "Baggotts Place") + asset_list["propertyaddress"] = asset_list["propertyaddress"].str.replace("Cherry Tree", "Cherrytree") + asset_list["propertyaddress"] = asset_list["propertyaddress"].str.replace("Maryhill Close", "Mary Hill Close") # Prepare the asset list asset_list["matching_address"] = asset_list["propertyaddress"].str.lower().str.strip() @@ -185,6 +187,8 @@ class DataLoader: survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace( "WEDGEWWOD AVENUE", "Wedgwood Avenue" ) + # The cherrytree record has wrong postcode + survey_list.loc[survey_list["Street / Block Name"] == "Cherrytree road", "Post Code"] = "ST5 7BP" matching_lookup = [] for _, row in tqdm(survey_list.iterrows(), total=len(survey_list)):