Skip to content

Commit

Permalink
change to string nan for pandas replace
Browse files Browse the repository at this point in the history
  • Loading branch information
betaBison committed Aug 14, 2024
1 parent 713e731 commit 109c4a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnss_lib_py/parsers/nmea.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 109c4a6

Please sign in to comment.