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."]