mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
minor prep ahead of orbit & wates
This commit is contained in:
parent
71d82edb49
commit
f122ae3269
1 changed files with 40 additions and 0 deletions
40
etl/customers/orbit/archetypes.py
Normal file
40
etl/customers/orbit/archetypes.py
Normal file
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue