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"