mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
HA25 eco3 matching 91% complete
This commit is contained in:
parent
5c3f6320dd
commit
ef77db1037
1 changed files with 9 additions and 0 deletions
|
|
@ -1516,6 +1516,15 @@ class DataLoader:
|
|||
if df.shape[0] != 1:
|
||||
df = df[df["HouseNo"].astype(str).str.lower() == str(house_number)]
|
||||
|
||||
if df.empty:
|
||||
missed.append(row["eco3_list_row_id"])
|
||||
continue
|
||||
|
||||
if df.shape[0] != 1:
|
||||
# Perform a search on streetname
|
||||
street_name_section1 = row["Street / Block Name"].lower().split("/")[0].split(",")[0]
|
||||
df = df[df["matching_address"].str.contains(street_name_section1)]
|
||||
|
||||
if df.shape[0] != 1:
|
||||
print(row["Street / Block Name"])
|
||||
print(house_number)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue