adding for format_recomendations

This commit is contained in:
Khalim Conn-Kowlessar 2024-11-12 17:50:08 +00:00
parent 76f9b22ca2
commit 2e78ba6d5d
2 changed files with 7 additions and 1 deletions

View file

@ -175,6 +175,7 @@ def caha():
).str.strip()
# We Add POstcode as it wasn't populated - split on space and take the last two entries and re-concatenate on space
caha_asset_list["Street address"] = caha_asset_list["Street address"].str.strip()
caha_asset_list["Postcode"] = caha_asset_list["Street address"].str.split(" ").str[-2:].str.join(" ")
# Take just the columns we need
caha_asset_list = caha_asset_list[["Address letter or number", "Street address", "Postcode"]]
@ -184,7 +185,8 @@ def caha():
# Pull the data from find my epc
remap = {
"Flat A, 50 Talbot Road N6 4QP": "50a Talbot Road"
"Flat A, 50 Talbot Road N6 4QP": "50a Talbot Road",
"Flat A, 51 First Avenue EN1 1BN": "51a, First Avenue",
}
extracted_data = []
asset_list = []

View file

@ -231,6 +231,10 @@ class RetrieveFindMyEpc:
],
"Solar water heating": ["solar_water_heating"],
"Solar photovoltaic panels, 2.5 kWp": ["solar_pv"],
"Heating controls (room thermostat and TRVs)": [
"roomstat_programmer_trvs", "time_temperature_zone_control"
],
"Change heating to gas condensing boiler": ["boiler_upgrade"],
}
formatted_recommendations = []