mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
matching 7% complete
This commit is contained in:
parent
cf9253d062
commit
8c61cca85d
1 changed files with 5 additions and 2 deletions
|
|
@ -151,9 +151,12 @@ class DataLoader:
|
|||
|
||||
def merge_ha_6(self, asset_list, survey_list):
|
||||
|
||||
# Correct the asset list
|
||||
asset_list["propertyaddress"] = asset_list["propertyaddress"].str.replace("Baggott Place", "Baggotts Place")
|
||||
|
||||
# Prepare the asset list
|
||||
asset_list["matching_address"] = asset_list["propertyaddress"].str.lower().strip()
|
||||
asset_list["matching_postcode"] = asset_list["Post Code"].str.lower().strip()
|
||||
asset_list["matching_address"] = asset_list["propertyaddress"].str.lower().str.strip()
|
||||
asset_list["matching_postcode"] = asset_list["Post Code"].str.lower().str.strip()
|
||||
|
||||
split_addresses = asset_list['matching_address'].str.split(',', expand=True)
|
||||
split_addresses.columns = ['temp', 'address2', 'address3', 'address4', 'address5']
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue