matching 34% complete

This commit is contained in:
Khalim Conn-Kowlessar 2024-01-22 12:02:43 +00:00
parent 7a2c90cbf3
commit ed0bbf44c7

View file

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