mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
fix bug in updating eligibility for initially non-eligible rows
This commit is contained in:
parent
a70260f128
commit
4cc467e514
1 changed files with 3 additions and 7 deletions
|
|
@ -1545,12 +1545,6 @@ class DataLoader:
|
|||
asset_list["ECO Eligibility"]
|
||||
)
|
||||
# Update the cases where a property is marked as not eligible, but sold for GBIS
|
||||
if ((asset_list["ECO Eligibility"] == "not eligible") & (
|
||||
asset_list["installation_status"].isin(
|
||||
["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(
|
||||
|
|
@ -1566,7 +1560,9 @@ class DataLoader:
|
|||
asset_list["installation_status"].isin(
|
||||
["ECO4 - in progress", "ECO4 - installed", "ECO4 - cancelled"]
|
||||
)
|
||||
)
|
||||
),
|
||||
"eco4",
|
||||
asset_list["ECO Eligibility"]
|
||||
)
|
||||
|
||||
asset_list = asset_list.drop(columns=["has_a_survey_record", "installation_status"])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue