mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
40 lines
1.3 KiB
Python
40 lines
1.3 KiB
Python
"""
|
|
This script will pull in properties, in neighbouring areas, that have been flagged for CWI
|
|
"""
|
|
import pandas as pd
|
|
|
|
asset_list = pd.read_excel(
|
|
"/Users/khalimconn-kowlessar/Documents/hestia/Customers/Thrive/July 2025 Inspections/Thrive Programme - "
|
|
"reconciled.xlsx",
|
|
sheet_name="Standardised Asset List"
|
|
)
|
|
|
|
cavity_areas = pd.read_excel(
|
|
"/Users/khalimconn-kowlessar/Documents/hestia/Customers/Thrive/July 2025 Inspections/Thrive Programme - "
|
|
"reconciled.xlsx",
|
|
sheet_name="Cavity Areas"
|
|
)
|
|
|
|
existing_inspections_sheet = pd.read_excel(
|
|
"/Users/khalimconn-kowlessar/Documents/hestia/Customers/Thrive/July 2025 Inspections/Thrive Programme - "
|
|
"reconciled.xlsx",
|
|
sheet_name="July 2025 Inspections"
|
|
)
|
|
|
|
empties = pd.read_excel(
|
|
"/Users/khalimconn-kowlessar/Documents/hestia/Customers/Thrive/July 2025 Inspections/Thrive Programme - "
|
|
"reconciled.xlsx",
|
|
sheet_name="Cavity properties - for review"
|
|
)
|
|
|
|
cavity_inspections = asset_list[
|
|
asset_list["domna_postcode"].isin(cavity_areas["domna_postcode"].values)
|
|
]
|
|
cavity_inspections = cavity_inspections[
|
|
~cavity_inspections["landlord_property_id"].isin(empties["landlord_property_id"].values)
|
|
]
|
|
|
|
cavity_inspections.to_csv(
|
|
"/Users/khalimconn-kowlessar/Documents/hestia/Customers/Thrive/July 2025 Inspections/cavity_inspections.csv",
|
|
index=False
|
|
)
|