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)):