""" 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 )