From 4dc827037dbb825e4f85534e2b744f3069a93375 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Tue, 26 Dec 2023 14:16:11 +0000 Subject: [PATCH] handling case for 66-68 clively --- etl/eligibility/ha_15_32/ha16_app.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/etl/eligibility/ha_15_32/ha16_app.py b/etl/eligibility/ha_15_32/ha16_app.py index 80a6b59d..bf9e7792 100644 --- a/etl/eligibility/ha_15_32/ha16_app.py +++ b/etl/eligibility/ha_15_32/ha16_app.py @@ -130,6 +130,14 @@ def load_data(): survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace("cresent", "crescent") survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace("plantation road", "plantation avenue") + # Replacement for clively avenue 66-68 + survey_list["NO."] = np.where( + survey_list["NO."] == "66-68", + "66", + survey_list["NO."] + ) + + # asset_list[asset_list["Address"].str.lower().str.contains("clively")] # We now need to merge the survey list onto the asset list # Could be easier just to do a search on each row, even though it's much slower