We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7779426 commit 189a635Copy full SHA for 189a635
2 files changed
python/housing_data/build_metros.py
@@ -5,7 +5,7 @@
5
6
7
def load_crosswalk_df(data_repo_path: Path) -> pd.DataFrame:
8
- 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")
9
10
# Drop the μSAs, no one cares about them.
11
# Most of them are just one county anyway, so showing the combined metro stats doesn't
python/housing_data/california_hcd_data.py
@@ -76,7 +76,9 @@ def load_california_hcd_data(
76
],
77
None,
78
)
79
- assert df["building_type"].isnull().sum() == 0
+
80
+ assert df["building_type"].isnull().sum() < 50
81
+ df = df[df["building_type"].notnull()]
82
83
df = df.rename(columns={"YEAR": "year"}).astype({"year": str})
84
0 commit comments