mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
completed portfolio refresh
This commit is contained in:
parent
f186c00df5
commit
ceda01b77f
2 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue