mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +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:
|
if df.shape[0] != 1:
|
||||||
df = df[df["HouseNo"].astype(str).str.lower() == str(house_number)]
|
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:
|
if df.shape[0] != 1:
|
||||||
print(row["Street / Block Name"])
|
print(row["Street / Block Name"])
|
||||||
print(house_number)
|
print(house_number)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue