matching 42% complete

This commit is contained in:
Khalim Conn-Kowlessar 2024-01-22 12:36:03 +00:00
parent ed0bbf44c7
commit 702de41d46

View file

@ -190,6 +190,20 @@ class DataLoader:
# The cherrytree record has wrong postcode
survey_list.loc[survey_list["Street / Block Name"] == "Cherrytree road", "Post Code"] = "ST5 7BP"
survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace(
"MONUMENT RD", "Monument Road"
)
# Generally replace " 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(
"HILARY Road", "Hillary Road"
)
# Remove full stops from the street name
survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace(".", "")
matching_lookup = []
for _, row in tqdm(survey_list.iterrows(), total=len(survey_list)):
house_number = row["NO."]