started working on ha33 but paused

This commit is contained in:
Khalim Conn-Kowlessar 2024-03-03 15:35:49 +00:00
parent 2828b005cb
commit 811f141c45

View file

@ -221,6 +221,12 @@ class DataLoader:
asset_list["Postcode"].astype(str).str.lower().str.strip()
)
asset_list["matching_postcode"] = asset_list["Postcode"].astype(str).str.lower().str.strip()
elif ha_name == "HA33":
asset_list["matching_address"] = (
asset_list["ADDRESS"].astype(str).str.lower().str.strip() + ", " +
asset_list["POST CODE"].astype(str).str.lower().str.strip()
)
asset_list["matching_postcode"] = asset_list["POST CODE"].astype(str).str.lower().str.strip()
elif ha_name == "HA39":
# Create matching_address by concatenating add_1, add_2, add_3, add_4, add_5, post_code
asset_list["matching_address"] = asset_list["add_1"].astype(str).str.lower().str.strip() + ", " + \
@ -3426,9 +3432,9 @@ def app():
december_figures_filepath = "local_data/ha_data/HA_December_figures.csv"
priority_has = [
"HA1", "HA6", "HA7", "HA14", "HA15", "HA16", "HA24", "HA25", "HA32", "HA39", "HA107"
"HA1", "HA6", "HA7", "HA14", "HA15", "HA16", "HA24", "HA25", "HA28", "HA32", "HA39", "HA107",
]
# Next HAs to do: 15[DONE], 32, 33,
# Next HAs to do: 15[DONE], 32 [DONE], 33 [Input format is 4 parts and no eco4 jobs identified - come back on this],
# Then: 28, 41, 38, 10, 14, 20, 48
# Filter down the directories to only the priority HAs
directories = [d for d in directories if d.split("/")[2] in priority_has]