Skip to content

Commit

Permalink
Change spelling "Jersey, NJ" -> "Jersey City, NJ"
Browse files Browse the repository at this point in the history
  • Loading branch information
sid-kap committed Sep 24, 2023
1 parent 5646cb4 commit 4e66623
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/housing_data/build_places.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ def get_name_spelling(places_df: pd.DataFrame) -> pd.Series:
].str.contains("Parish")
name = is_unincorporated.map({True: "Unincorporated ", False: ""}) + name

# Fix Jersey City, NJ
name[(name == "Jersey") & (places_df["state_code"] == 34)] = "Jersey City"

return name


Expand Down

0 comments on commit 4e66623

Please sign in to comment.