From a8acf389ef5e61b6e680e107d0c5c464446db962 Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Thu, 30 Jun 2022 13:48:58 +0200 Subject: [PATCH] fix: missing assignment in NaN replace --- geocluster/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geocluster/io.py b/geocluster/io.py index d680125..d84f163 100644 --- a/geocluster/io.py +++ b/geocluster/io.py @@ -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(