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 fffc9daf..d27bf8e8 100644 --- a/etl/eligibility/ha_15_32/ha_analysis_batch_3.py +++ b/etl/eligibility/ha_15_32/ha_analysis_batch_3.py @@ -221,7 +221,7 @@ class DataLoader: return asset_list @staticmethod - def correct_ha39_asset_list(asset_list): + def correct_ha14_asset_list(asset_list): return asset_list @staticmethod @@ -354,7 +354,15 @@ class DataLoader: return survey_list @staticmethod - def correct_ha39_survey_list(survey_list): + def correct_ha14_survey_list(survey_list): + survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace( + "Godfrey Road", "Godfrey Drive" + ) + + survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace( + "Oiliver Road", "Oliver Road" + ) + return survey_list def merge_surveys_to_assets(self, asset_list, survey_list, ha_name): @@ -389,7 +397,7 @@ class DataLoader: if df.shape[0] != 1: df = df[df["HouseNo"] == str(house_number)] if df.shape[0] != 1: - df = df[df["matching_postcode"].str.lower().str.contains(row["Post Code"].lower())] + df = df[df["matching_postcode"].str.lower().str.contains(row["Post Code"].lower().strip())] if df.shape[0] != 1: postcode_lower = row["Post Code"].lower() if postcode_lower in missed_postcodes: