Model/backend/address2UPRN/script.py
2026-01-23 16:39:16 +00:00

17 lines
380 B
Python

import pandas as pd
# use Address 1
junte_df = pd.read_excel("hackney_uprn_failures.xlsx")
# use domna_address_1
khalim_df = pd.read_excel("khalim_standard.xlsx")
combined_df = junte_df.merge(khalim_df, how="left", left_on="Address 1", right_on='domna_address_1')
# Find the row in khalim_df that does not app
result = combined_df[~pd.isnull(combined_df["epc_os_uprn"])]