fix: missing assignment in NaN replace

This commit is contained in:
msramalho
2022-06-30 13:48:58 +02:00
parent 729c2e49bf
commit a8acf389ef

View File

@@ -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(