stonewater tweaks

This commit is contained in:
Khalim Conn-Kowlessar 2024-07-24 13:33:54 +01:00
parent 1dafedc733
commit 58cbef9a2b

View file

@ -2371,6 +2371,10 @@ def updated_version():
asset_list_with_archetypes = asset_list.merge(
assigned_clusters[["internal_id", "cluster", "archetype_representative", "rank"]], how="left",
on="internal_id"
).merge(
master_sheet_clustering_features[["Address ID", "Property Type", "Walls", "Roofs", "Heating"]],
how="left",
on="Address ID"
)
# We populate the reasons for no archetype
@ -2410,7 +2414,7 @@ def updated_version():
asset_list_with_archetypes["archetype_representative"].fillna(False)
)
asset_list_with_archetypes.to_csv("Stonewater asset list with archetypes V3.csv", index=False)
asset_list_with_archetypes.to_csv("Stonewater asset list with archetypes V3.1.csv", index=False)
# Produce the archetyping features
archetyping_features_csv = assigned_clusters[