From 702de41d464e27cf4dad6db118dd1ac367e99c27 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Mon, 22 Jan 2024 12:36:03 +0000 Subject: [PATCH] matching 42% complete --- etl/eligibility/ha_15_32/ha_analysis_batch_3.py | 14 ++++++++++++++ 1 file changed, 14 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 9cae6e37..5b2cefcd 100644 --- a/etl/eligibility/ha_15_32/ha_analysis_batch_3.py +++ b/etl/eligibility/ha_15_32/ha_analysis_batch_3.py @@ -190,6 +190,20 @@ class DataLoader: # The cherrytree record has wrong postcode survey_list.loc[survey_list["Street / Block Name"] == "Cherrytree road", "Post Code"] = "ST5 7BP" + survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace( + "MONUMENT RD", "Monument Road" + ) + + # Generally replace " RD" with " Road" + survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace(" RD", " Road") + + survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace( + "HILARY Road", "Hillary Road" + ) + + # Remove full stops from the street name + survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace(".", "") + matching_lookup = [] for _, row in tqdm(survey_list.iterrows(), total=len(survey_list)): house_number = row["NO."]