From 3799a780b46012179adeb84d1dd81e31761d86b3 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Tue, 20 Aug 2024 17:45:19 +0100 Subject: [PATCH] finding missed uprns --- etl/ownership/projects/midlands_portfolio/app.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etl/ownership/projects/midlands_portfolio/app.py b/etl/ownership/projects/midlands_portfolio/app.py index ae7822a6..f868bd3b 100644 --- a/etl/ownership/projects/midlands_portfolio/app.py +++ b/etl/ownership/projects/midlands_portfolio/app.py @@ -163,5 +163,10 @@ def app(): } print(body) + # We read in the current valuation data and identify if there are any uprns that need to be added + previous_valuations = pd.read_excel( + "/Users/khalimconn-kowlessar/Documents/hestia/Customers/sfr/sfr property valuations.xlsx") + asset_list[~asset_list["uprn"].astype(str).isin(previous_valuations["uprn"].astype(str))] + # We now need a distinct step to prepare final outputs portfolio_timestamp = "2024-08-20 15:51:10.292075"