We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59af0e5 commit 4c203c6Copy full SHA for 4c203c6
1 file changed
data_cleaning.py
@@ -8,4 +8,8 @@ def clean_data(data):
8
if "significant_height" in data.columns:
9
data.loc[data["significant_height"] >= 9999, "significant_height"] = None
10
11
+ if "latitude" in data.columns and "longitude" in data.columns:
12
+ # Drop rows where both latitude and longitude are 0
13
+ data = data.loc[~((data["latitude"] == 0) & (data["longitude"] == 0))]
14
+
15
return data
0 commit comments