Skip to content

Commit 189a635

Browse files
authored
Fix issues from August 2025 data (#104)
1 parent 7779426 commit 189a635

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

python/housing_data/build_metros.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

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

1010
# Drop the μSAs, no one cares about them.
1111
# Most of them are just one county anyway, so showing the combined metro stats doesn't

python/housing_data/california_hcd_data.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ def load_california_hcd_data(
7676
],
7777
None,
7878
)
79-
assert df["building_type"].isnull().sum() == 0
79+
80+
assert df["building_type"].isnull().sum() < 50
81+
df = df[df["building_type"].notnull()]
8082

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

0 commit comments

Comments
 (0)