diff --git a/etl/customers/orbit/archetypes.py b/etl/customers/orbit/archetypes.py new file mode 100644 index 00000000..2a2e0baf --- /dev/null +++ b/etl/customers/orbit/archetypes.py @@ -0,0 +1,40 @@ +import pandas as pd + + +def main(): + """ + Some rough and ready analysis to get a view of what the achetypes could be, ahead of a meeting with Wates + on the 28th Aug 2024 + :return: + """ + + all_assets = pd.read_excel( + "/Users/khalimconn-kowlessar/Documents/hestia/Customers/Orbit - Wates/Bexley Wave 3 Project - external - " + "reduced.xlsx", + sheet_name="Full Property List", + header=1 + ) + + secondary_cols = ["" if pd.isnull(x) else x for x in all_assets.iloc[0, :].values] + new_colnames = [ + "+".join([all_assets.columns[i], secondary_cols[i]]) if secondary_cols[i] else all_assets.columns[i] + for i, c in enumerate(all_assets.columns) + ] + # Drop row 0 + + locations = { + location_name: pd.read_excel( + "/Users/khalimconn-kowlessar/Documents/hestia/Customers/Orbit - Wates/Bexley Wave 3 Project - external - " + "reduced" + ".xlsx", + sheet_name=location_name + ) for location_name in [ + "Forest Road Erith", + "Lesney Farms", + "Brook Street 155 - 243", + "Hazel Drive", + "Page Crescent", + "Brook Salmon Roberts and Chapma", + "Beacon Road" + ] + }