completed portfolio refresh

This commit is contained in:
Khalim Conn-Kowlessar 2024-08-20 20:25:53 +01:00
parent f186c00df5
commit ceda01b77f
2 changed files with 2 additions and 4 deletions

View file

@ -1103,7 +1103,7 @@ class Ownership:
# Step 2: Merge in the valuations data
portfolio_properties = portfolio_properties.merge(
valuations, how="left", on="UPRN"
valuations.rename(columns={"uprn": "UPRN"}).drop(columns=['address', 'postcode']), how="left", on="UPRN"
)
# Step 3: Store the final outputs

View file

@ -171,9 +171,7 @@ def app():
# missed.to_csv("missed_valuations.csv")
# We now need a distinct step to prepare final outputs
portfolio_timestamp = "2024-08-20 19:28:18.260205"
exclusion_uprns = EXCLUDED_UPRNS
portfolio_timestamp = "2024-08-20 19:51:33.884145"
# Create a date in the yyyy-mm-dd format to store the data against
storage_date = datetime.datetime.now().strftime("%Y-%m-%d")