ha50 93% complete

This commit is contained in:
Khalim Conn-Kowlessar 2024-03-07 15:33:26 +00:00
parent 1146f34eba
commit 5a1aa39952

View file

@ -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