matching 81% complete

This commit is contained in:
Khalim Conn-Kowlessar 2024-03-07 15:24:20 +00:00
parent 4afd012e51
commit 1146f34eba

View file

@ -1333,6 +1333,45 @@ class DataLoader:
(survey_list["NO."].isin([4])))
]
# Remove 11 Tilehurst Place
survey_list = survey_list[
~((survey_list["Street / Block Name"] == "Tilehurst Place") &
(survey_list["Post Code"] == "ST3 3AP") &
(survey_list["NO."].isin([11])))
]
survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace(
"deavile road", "DEAVILLE ROAD"
)
survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace(
"WOOLISCROFT ROAD", "WOOLLISCROFT ROAD"
)
survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace(
"Leak Road", "Leek Road"
)
survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace(
"Springfield road", "Springfields road"
)
survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace(
"MILLWARD RD", "MILLWARD ROAD"
)
survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace(
"REPINGTON RD", "REPINGTON ROAD"
)
survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace(
"ECCELSTONE PLACE", "ECCLESTONE PLACE"
)
survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace(
"St. James Place", "St James Place"
)
return survey_list
@staticmethod