From 1e52fe7fb97061d64194456e6d56bd814b660cf7 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Mon, 22 Jan 2024 11:51:28 +0000 Subject: [PATCH] 11% complete matching --- etl/eligibility/ha_15_32/ha_analysis_batch_3.py | 8 ++++++++ 1 file changed, 8 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 257e71d2..3bfea948 100644 --- a/etl/eligibility/ha_15_32/ha_analysis_batch_3.py +++ b/etl/eligibility/ha_15_32/ha_analysis_batch_3.py @@ -166,6 +166,14 @@ class DataLoader: asset_list = pd.concat([asset_list, house_numbers[["HouseNo"]]], axis=1) del split_addresses, house_numbers + # Correct the survey list + survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace( + "Seabridge Road", "Seabridge Lane" + ) + + # Strip out /KNUTTON from the street name + survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace("/KNUTTON", "") + matching_lookup = [] for _, row in tqdm(survey_list.iterrows(), total=len(survey_list)): house_number = row["NO."]