working through matching ha24

This commit is contained in:
Khalim Conn-Kowlessar 2023-12-27 13:32:42 +00:00
parent 975a9fa9a0
commit 25684622f9

View file

@ -90,6 +90,11 @@ def load_data():
# Tidy up the street/block name a bit
survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace("/", ", ")
survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.lower()
survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.strip()
survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace(
"Council House/Nidds Lane", "NIDDS LANE"
)
# Drop all None rows
survey_list = survey_list.dropna(how='all')