mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
Added HA52
This commit is contained in:
parent
c58acadb73
commit
e7cd80eba0
1 changed files with 21 additions and 0 deletions
|
|
@ -946,6 +946,17 @@ class DataLoader:
|
||||||
else:
|
else:
|
||||||
return "ECO surveys"
|
return "ECO surveys"
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def correct_ha51_asset_list(asset_list):
|
||||||
|
# Correct this
|
||||||
|
asset_list["HouseNo"] = np.where(
|
||||||
|
asset_list["matching_address"].str.contains("61 wandle bank"),
|
||||||
|
asset_list["Block"].str.lower(),
|
||||||
|
asset_list["HouseNo"]
|
||||||
|
)
|
||||||
|
|
||||||
|
return asset_list
|
||||||
|
|
||||||
def load_asset_list(self, filepath, ha_name):
|
def load_asset_list(self, filepath, ha_name):
|
||||||
workbook = openpyxl.load_workbook(filepath)
|
workbook = openpyxl.load_workbook(filepath)
|
||||||
asset_sheetname = self.get_asset_sheetname(workbook)
|
asset_sheetname = self.get_asset_sheetname(workbook)
|
||||||
|
|
@ -2510,6 +2521,16 @@ class DataLoader:
|
||||||
)
|
)
|
||||||
return survey_list
|
return survey_list
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def correct_ha51_survey_list(survey_list):
|
||||||
|
survey_list = survey_list.rename(columns={"NO ": "NO."})
|
||||||
|
|
||||||
|
survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace(
|
||||||
|
"Autum Close", "Autumn Close"
|
||||||
|
)
|
||||||
|
|
||||||
|
return survey_list
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def levenstein_match(matching_string, df):
|
def levenstein_match(matching_string, df):
|
||||||
match_to = df["matching_address"].tolist()
|
match_to = df["matching_address"].tolist()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue