Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit 4fc6525

Browse files
authored
Series isna/notna numpy-like call (#591)
1 parent 47064c9 commit 4fc6525

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sdc/datatypes/hpat_pandas_series_functions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2398,7 +2398,7 @@ def hpat_pandas_series_isnull(self):
23982398

23992399
if isinstance(self.data.dtype, (types.Number, types.Boolean, bool)):
24002400
def hpat_pandas_series_isnull_impl(self):
2401-
return pandas.Series(data=numpy.isnan(self._data), index=self._index, name=self._name)
2401+
return pandas.Series(data=numpy_like.isnan(self._data), index=self._index, name=self._name)
24022402

24032403
return hpat_pandas_series_isnull_impl
24042404

@@ -2466,7 +2466,7 @@ def hpat_pandas_series_isna(self):
24662466

24672467
if isinstance(self.data.dtype, (types.Number, types.Boolean, bool)):
24682468
def hpat_pandas_series_isna_impl(self):
2469-
return pandas.Series(data=numpy.isnan(self._data), index=self._index, name=self._name)
2469+
return pandas.Series(data=numpy_like.isnan(self._data), index=self._index, name=self._name)
24702470

24712471
return hpat_pandas_series_isna_impl
24722472

@@ -2534,7 +2534,7 @@ def hpat_pandas_series_notna(self):
25342534

25352535
if isinstance(self.data.dtype, (types.Number, types.Boolean, bool)):
25362536
def hpat_pandas_series_notna_impl(self):
2537-
return pandas.Series(numpy.invert(numpy.isnan(self._data)), index=self._index, name=self._name)
2537+
return pandas.Series(numpy_like.notnan(self._data), index=self._index, name=self._name)
25382538

25392539
return hpat_pandas_series_notna_impl
25402540

0 commit comments

Comments
 (0)