mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
debugging survey matching for ha14
This commit is contained in:
parent
a1b2f9bf5b
commit
d3bff08df8
1 changed files with 11 additions and 3 deletions
|
|
@ -221,7 +221,7 @@ class DataLoader:
|
|||
return asset_list
|
||||
|
||||
@staticmethod
|
||||
def correct_ha39_asset_list(asset_list):
|
||||
def correct_ha14_asset_list(asset_list):
|
||||
return asset_list
|
||||
|
||||
@staticmethod
|
||||
|
|
@ -354,7 +354,15 @@ class DataLoader:
|
|||
return survey_list
|
||||
|
||||
@staticmethod
|
||||
def correct_ha39_survey_list(survey_list):
|
||||
def correct_ha14_survey_list(survey_list):
|
||||
survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace(
|
||||
"Godfrey Road", "Godfrey Drive"
|
||||
)
|
||||
|
||||
survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace(
|
||||
"Oiliver Road", "Oliver Road"
|
||||
)
|
||||
|
||||
return survey_list
|
||||
|
||||
def merge_surveys_to_assets(self, asset_list, survey_list, ha_name):
|
||||
|
|
@ -389,7 +397,7 @@ class DataLoader:
|
|||
if df.shape[0] != 1:
|
||||
df = df[df["HouseNo"] == str(house_number)]
|
||||
if df.shape[0] != 1:
|
||||
df = df[df["matching_postcode"].str.lower().str.contains(row["Post Code"].lower())]
|
||||
df = df[df["matching_postcode"].str.lower().str.contains(row["Post Code"].lower().strip())]
|
||||
if df.shape[0] != 1:
|
||||
postcode_lower = row["Post Code"].lower()
|
||||
if postcode_lower in missed_postcodes:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue