mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
filled missing build form with semi-d
This commit is contained in:
parent
2ff35307fa
commit
b6c56393c0
2 changed files with 4 additions and 0 deletions
|
|
@ -186,6 +186,8 @@ recommendations = {}
|
|||
recommendations_scoring_data = []
|
||||
representative_recommendations = {}
|
||||
for p in tqdm(input_properties):
|
||||
if p.data["property-type"] == "House" and pd.isnull(p.data["built-form"]):
|
||||
p.data["built-form"] = "Semi-Detached"
|
||||
recommender = Recommendations(
|
||||
property_instance=p,
|
||||
materials=materials,
|
||||
|
|
|
|||
|
|
@ -760,6 +760,8 @@ class EPCRecord:
|
|||
if self.prepared_epc["built-form"] in DATA_ANOMALY_MATCHES:
|
||||
if self.prepared_epc["property-type"] in ["Flat", "Maisonette"]:
|
||||
self.prepared_epc["built-form"] = "End-Terrace"
|
||||
else:
|
||||
self.prepared_epc["built-form"] = "Semi-Detached"
|
||||
|
||||
def _clean_age_band(self):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue