mirror of
https://github.com/bellingcat/geoclustering.git
synced 2026-06-08 03:28:30 +03:00
fix: missing assignment in NaN replace
This commit is contained in:
@@ -31,7 +31,7 @@ def read_csv_file(filename):
|
||||
initial_rows = len(df)
|
||||
|
||||
df = df.dropna(subset=["lat", "lon"])
|
||||
df.replace({np.nan: None}) # replace for other fields not to break kepler parsing
|
||||
df = df.replace({np.nan: None}) # replace for other fields not to break kepler parsing
|
||||
print(f"Ignored {initial_rows - len(df)} coordinates with NaN")
|
||||
|
||||
valid_index = df.lat.astype(str).apply(is_valid_lat) & df.lon.astype(str).apply(
|
||||
|
||||
Reference in New Issue
Block a user