mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
matching 42% complete
This commit is contained in:
parent
ed0bbf44c7
commit
702de41d46
1 changed files with 14 additions and 0 deletions
|
|
@ -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."]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue