filled missing build form with semi-d

This commit is contained in:
Khalim Conn-Kowlessar 2025-08-29 00:45:04 +01:00
parent 2ff35307fa
commit b6c56393c0
2 changed files with 4 additions and 0 deletions

View file

@ -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,

View file

@ -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):
"""