minor prep ahead of orbit & wates

This commit is contained in:
Khalim Conn-Kowlessar 2024-08-24 15:07:51 +01:00
parent 71d82edb49
commit f122ae3269

View 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"
]
}