Skip to content

Commit

Permalink
bug fix (blank filler)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaanukstar123 committed Nov 18, 2022
1 parent 176fd8c commit 16ee389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion part2_house_value_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _preprocessor(self, x, y = None, training = False):

#Fills empty data points with averages of their column
for col in x:
if col ==("longitude" or "latitude" or "median_income"):
if col in {"longitude","latitude", "median_income"}:
x[col].fillna(x[col].mean(), inplace=True)
elif col == "ocean_proximity":
x[col].fillna(x[col].mode()[0], inplace=True)
Expand Down

0 comments on commit 16ee389

Please sign in to comment.