mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Update how we handle partially completed jobs
This commit is contained in:
parent
9d26c94ae5
commit
a70260f128
1 changed files with 11 additions and 1 deletions
|
|
@ -1476,7 +1476,7 @@ class DataLoader:
|
|||
# Find partial installations
|
||||
survey_list["installation_status"] = np.where(
|
||||
survey_list["installed_or_cancelled_clean"].str.contains("still to be installed"),
|
||||
"partially installed",
|
||||
"in progress",
|
||||
survey_list["installation_status"]
|
||||
)
|
||||
# Find partial cancellations
|
||||
|
|
@ -1550,6 +1550,7 @@ class DataLoader:
|
|||
["GBIS - in progress", "GBIS - installed", "GBIS - cancelled"]
|
||||
))).sum():
|
||||
bah
|
||||
|
||||
asset_list["ECO Eligibility"] = np.where(
|
||||
(asset_list["ECO Eligibility"] == "not eligible") & (
|
||||
asset_list["installation_status"].isin(
|
||||
|
|
@ -1559,6 +1560,15 @@ class DataLoader:
|
|||
asset_list["ECO Eligibility"]
|
||||
)
|
||||
|
||||
# Update the cases where a property is marked as not eligible, but sold for ECO4
|
||||
asset_list["ECO Eligibility"] = np.where(
|
||||
(asset_list["ECO Eligibility"] == "not eligible") & (
|
||||
asset_list["installation_status"].isin(
|
||||
["ECO4 - in progress", "ECO4 - installed", "ECO4 - cancelled"]
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
asset_list = asset_list.drop(columns=["has_a_survey_record", "installation_status"])
|
||||
|
||||
# Update the survey list with installation status
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue