mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
matching 34% complete
This commit is contained in:
parent
7a2c90cbf3
commit
ed0bbf44c7
1 changed files with 4 additions and 0 deletions
|
|
@ -153,6 +153,8 @@ class DataLoader:
|
|||
|
||||
# Correct the asset list
|
||||
asset_list["propertyaddress"] = asset_list["propertyaddress"].str.replace("Baggott Place", "Baggotts Place")
|
||||
asset_list["propertyaddress"] = asset_list["propertyaddress"].str.replace("Cherry Tree", "Cherrytree")
|
||||
asset_list["propertyaddress"] = asset_list["propertyaddress"].str.replace("Maryhill Close", "Mary Hill Close")
|
||||
|
||||
# Prepare the asset list
|
||||
asset_list["matching_address"] = asset_list["propertyaddress"].str.lower().str.strip()
|
||||
|
|
@ -185,6 +187,8 @@ class DataLoader:
|
|||
survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace(
|
||||
"WEDGEWWOD AVENUE", "Wedgwood Avenue"
|
||||
)
|
||||
# The cherrytree record has wrong postcode
|
||||
survey_list.loc[survey_list["Street / Block Name"] == "Cherrytree road", "Post Code"] = "ST5 7BP"
|
||||
|
||||
matching_lookup = []
|
||||
for _, row in tqdm(survey_list.iterrows(), total=len(survey_list)):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue