Skip to content

Commit ca0c05e

Browse files
committed
Fix Culver City and Atlantic City name
1 parent 27b440c commit ca0c05e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

python/housing_data/build_places.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,10 @@ def get_name_spelling(places_df: pd.DataFrame) -> pd.Series:
286286
].str.contains("Parish")
287287
name = is_unincorporated.map({True: "Unincorporated ", False: ""}) + name
288288

289-
# Fix Jersey City, NJ
289+
# Fix cities that have "City" in the name
290290
name[(name == "Jersey") & (places_df["state_code"] == 34)] = "Jersey City"
291+
name[(name == "Atlantic") & (places_df["state_code"] == 34)] = "Atlantic City"
292+
name[(name == "Culver") & (places_df["state_code"] == 6)] = "Culver City"
291293

292294
return name
293295

0 commit comments

Comments
 (0)