mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
11% through matching
This commit is contained in:
parent
b1936521f6
commit
1814d7b670
1 changed files with 7 additions and 0 deletions
|
|
@ -3382,6 +3382,13 @@ def revised_model():
|
|||
to_filter = filtered["survey_folder"].str.replace(r"[^\w\s]", "").str.contains(
|
||||
home["Name"].replace(r"[^\w\s]", "").replace("Flat", "").lstrip(), case=False
|
||||
)
|
||||
|
||||
if to_filter.sum() > 1:
|
||||
to_filter = (
|
||||
filtered["survey_folder"].str.replace(r"[^\w\s]", "").str.split("/").str[-1].str.lower() ==
|
||||
home["Name"].replace(r"[^\w\s]", "").lstrip().lower()
|
||||
)
|
||||
|
||||
if to_filter.sum() == 0:
|
||||
to_filter = (
|
||||
filtered["survey_folder"].
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue