mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
ha50 93% complete
This commit is contained in:
parent
1146f34eba
commit
5a1aa39952
1 changed files with 44 additions and 0 deletions
|
|
@ -1372,6 +1372,50 @@ class DataLoader:
|
|||
"St. James Place", "St James Place"
|
||||
)
|
||||
|
||||
survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace(
|
||||
"CHELL HEATH RD", "CHELL HEATH ROAD"
|
||||
)
|
||||
# Correct postcode
|
||||
survey_list["Post Code"] = np.where(
|
||||
(survey_list["Street / Block Name"] == 'CHELL HEATH ROAD') &
|
||||
(survey_list["Post Code"] == 'ST6 6HU'),
|
||||
"ST6 6HJ",
|
||||
survey_list["Post Code"]
|
||||
)
|
||||
|
||||
survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace(
|
||||
"Franklin Rd", "Franklin Road"
|
||||
)
|
||||
|
||||
survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace(
|
||||
"Lodge Rd", "Lodge Road"
|
||||
)
|
||||
|
||||
survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace(
|
||||
"St Matthews Street", "St Matthew Street"
|
||||
)
|
||||
|
||||
survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace(
|
||||
"Grove Bank Road", "Grovebank Road"
|
||||
)
|
||||
|
||||
survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace(
|
||||
"OVERSLEY RD", "OVERSLEY ROAD"
|
||||
)
|
||||
|
||||
# Replace all of the " RD" with " ROAD"
|
||||
survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace(
|
||||
" RD", " ROAD"
|
||||
)
|
||||
|
||||
survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace(
|
||||
"St. Georges Crescent", "St Georges Crescent"
|
||||
)
|
||||
|
||||
survey_list["Street / Block Name"] = survey_list["Street / Block Name"].str.replace(
|
||||
"Tewson Road", "Tewson Green"
|
||||
)
|
||||
|
||||
return survey_list
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue