Skip to content

Commit 9b99127

Browse files
committed
Does this fix?
1 parent 7779426 commit 9b99127

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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)