From 4601edbf27f3dd4de5d6df05495d3cfdd1f4e74d Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Mon, 22 Jan 2024 12:42:01 +0000 Subject: [PATCH] matching 51% complete --- etl/eligibility/ha_15_32/ha_analysis_batch_3.py | 15 +++++++++++++++ 1 file changed, 15 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 5b2cefcd..ff717f86 100644 --- a/etl/eligibility/ha_15_32/ha_analysis_batch_3.py +++ b/etl/eligibility/ha_15_32/ha_analysis_batch_3.py @@ -204,6 +204,21 @@ class DataLoader: # Remove full stops from the street name survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace(".", "") + survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace( + "Chatworth road", "Chatsworth Place" + ) + + survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace( + "Wood Croft", "Woodcroft" + ) + + survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace( + "Milstone Avenue", "Millstone Avenue" + ) + + # Strip out /TALKE from the street name + survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace("/TALKE", "") + matching_lookup = [] for _, row in tqdm(survey_list.iterrows(), total=len(survey_list)): house_number = row["NO."]