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 7fbddd54..257e71d2 100644 --- a/etl/eligibility/ha_15_32/ha_analysis_batch_3.py +++ b/etl/eligibility/ha_15_32/ha_analysis_batch_3.py @@ -151,9 +151,12 @@ class DataLoader: def merge_ha_6(self, asset_list, survey_list): + # Correct the asset list + asset_list["propertyaddress"] = asset_list["propertyaddress"].str.replace("Baggott Place", "Baggotts Place") + # Prepare the asset list - asset_list["matching_address"] = asset_list["propertyaddress"].str.lower().strip() - asset_list["matching_postcode"] = asset_list["Post Code"].str.lower().strip() + asset_list["matching_address"] = asset_list["propertyaddress"].str.lower().str.strip() + asset_list["matching_postcode"] = asset_list["Post Code"].str.lower().str.strip() split_addresses = asset_list['matching_address'].str.split(',', expand=True) split_addresses.columns = ['temp', 'address2', 'address3', 'address4', 'address5']