Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/housing_data/build_metros.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


def load_crosswalk_df(data_repo_path: Path) -> pd.DataFrame:
crosswalk_df = pd.read_csv(data_repo_path / "data/crosswalk/cbsa2fipsxw.csv")
crosswalk_df = pd.read_csv(data_repo_path / "data/crosswalk/cbsa2fipsxw_2023.csv")

# Drop the μSAs, no one cares about them.
# Most of them are just one county anyway, so showing the combined metro stats doesn't
Expand Down
4 changes: 3 additions & 1 deletion python/housing_data/california_hcd_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ def load_california_hcd_data(
],
None,
)
assert df["building_type"].isnull().sum() == 0

assert df["building_type"].isnull().sum() < 50
df = df[df["building_type"].notnull()]

df = df.rename(columns={"YEAR": "year"}).astype({"year": str})

Expand Down
Loading