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 818f6e4f..3b9bd7ca 100644 --- a/etl/eligibility/ha_15_32/ha_analysis_batch_3.py +++ b/etl/eligibility/ha_15_32/ha_analysis_batch_3.py @@ -1372,6 +1372,50 @@ class DataLoader: "St. James Place", "St James Place" ) + survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace( + "CHELL HEATH RD", "CHELL HEATH ROAD" + ) + # Correct postcode + survey_list["Post Code"] = np.where( + (survey_list["Street / Block Name"] == 'CHELL HEATH ROAD') & + (survey_list["Post Code"] == 'ST6 6HU'), + "ST6 6HJ", + survey_list["Post Code"] + ) + + survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace( + "Franklin Rd", "Franklin Road" + ) + + survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace( + "Lodge Rd", "Lodge Road" + ) + + survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace( + "St Matthews Street", "St Matthew Street" + ) + + survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace( + "Grove Bank Road", "Grovebank Road" + ) + + survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace( + "OVERSLEY RD", "OVERSLEY ROAD" + ) + + # Replace all of the " 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( + "St. Georges Crescent", "St Georges Crescent" + ) + + survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace( + "Tewson Road", "Tewson Green" + ) + return survey_list @staticmethod