From 109c4a6931ba05b3f9f8c35ba41459b3cf8d145d Mon Sep 17 00:00:00 2001 From: betaBison Date: Wed, 14 Aug 2024 15:20:15 -0700 Subject: [PATCH] change to string nan for pandas replace --- gnss_lib_py/parsers/nmea.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnss_lib_py/parsers/nmea.py b/gnss_lib_py/parsers/nmea.py index 6a59e845..ae858a4e 100644 --- a/gnss_lib_py/parsers/nmea.py +++ b/gnss_lib_py/parsers/nmea.py @@ -151,7 +151,7 @@ def __init__(self, input_path, msg_types=None, .ffill()\ .astype(float) pd_df["num_sats"] = pd_df["num_sats"].fillna(value=0).astype('int64') - pd_df = pd_df.fillna(value=np.nan).replace("",np.nan) + pd_df = pd_df.fillna(value=np.nan).replace("","nan") convert_dict={ 'num_sats' : np.int64, 'gps_qual' : np.int64,