mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
41% through matching
This commit is contained in:
parent
f2305fa9b2
commit
dcc7757190
1 changed files with 12 additions and 1 deletions
|
|
@ -182,13 +182,24 @@ def load_data():
|
|||
eco4_prospects_survey_list["ADDRESS 1"]
|
||||
)
|
||||
|
||||
eco4_prospects_survey_list["ADDRESS 1"] = np.where(
|
||||
(eco4_prospects_survey_list["ADDRESS 1"] == "old farm road") & (
|
||||
eco4_prospects_survey_list["POSTCODE"] == "PL5 1EP"),
|
||||
"old school road",
|
||||
eco4_prospects_survey_list["ADDRESS 1"]
|
||||
)
|
||||
|
||||
matched = []
|
||||
for _, row in tqdm(eco4_prospects_survey_list.iterrows(), total=len(eco4_prospects_survey_list)):
|
||||
|
||||
# Not in the survey list
|
||||
# Not in the asset list
|
||||
if (row["ADDRESS 1"] == "berry park") and row["NO"] in [40, 42] and row["POSTCODE"] == "PL12 6EN":
|
||||
continue
|
||||
|
||||
# Not in the asset list
|
||||
if (row["ADDRESS 1"] == "roberts road") and row["NO"] == 23 and row["POSTCODE"] == "PL5 1DP":
|
||||
continue
|
||||
|
||||
house_number = row["NO"]
|
||||
if isinstance(house_number, str):
|
||||
house_number = house_number.lower()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue