From aa4fd98dc0c6332790419fd49025aae603b76a5c Mon Sep 17 00:00:00 2001 From: Nicholas Reinicke Date: Mon, 22 Jul 2024 09:40:06 -0600 Subject: [PATCH] fix numpy mypy errors --- mappymatch/matchers/match_result.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mappymatch/matchers/match_result.py b/mappymatch/matchers/match_result.py index 8629d8a..5eb89bd 100644 --- a/mappymatch/matchers/match_result.py +++ b/mappymatch/matchers/match_result.py @@ -21,7 +21,7 @@ def matches_to_dataframe(self) -> pd.DataFrame: A pandas dataframe """ df = pd.DataFrame([m.to_flat_dict() for m in self.matches]) - df = df.fillna(np.NAN) + df = df.fillna(np.nan) return df @@ -37,6 +37,6 @@ def path_to_dataframe(self) -> pd.DataFrame: return pd.DataFrame() df = pd.DataFrame([r.to_flat_dict() for r in self.path]) - df = df.fillna(np.NAN) + df = df.fillna(np.nan) return df