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

Commit

Permalink
Merge 2cb4561 into 33742c4
Browse files Browse the repository at this point in the history
  • Loading branch information
1e-to committed Oct 29, 2019
2 parents 33742c4 + 2cb4561 commit ba6e0a9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
7 changes: 4 additions & 3 deletions hpat/datatypes/hpat_pandas_series_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,15 +788,17 @@ def hpat_pandas_series_groupby_impl(
return hpat_pandas_series_groupby_impl


@overload_method(SeriesType, 'isnull')
@overload_method(SeriesType, 'isna')
def hpat_pandas_series_isna(self):
"""
Pandas Series method :meth:`pandas.Series.isna` implementation.
Pandas Series method :meth:`pandas.Series.isna` and :meth:`pandas.Series.isnull` implementation.
.. only:: developer
Test: python -m hpat.runtests hpat.tests.test_series.TestSeries.test_series_isna1
Test: python -m hpat.runtests hpat.tests.test_series.TestSeries.test_series_str_isna1
Test: python -m hpat.runtests hpat.tests.test_series.TestSeries.test_series_isnull1
Parameters
-----------
Expand All @@ -809,7 +811,7 @@ def hpat_pandas_series_isna(self):
returns :obj:`pandas.Series` object
"""

_func_name = 'Method isna().'
_func_name = 'Method isna/isnull().'

if not isinstance(self, SeriesType):
raise TypingError(
Expand All @@ -818,7 +820,6 @@ def hpat_pandas_series_isna(self):
if isinstance(self.dtype, (types.Integer, types.Float)):

def hpat_pandas_series_isna_impl(self):

return pandas.Series(numpy.isnan(self._data))

return hpat_pandas_series_isna_impl
Expand Down
10 changes: 5 additions & 5 deletions hpat/hiframes/pd_series_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,11 +661,11 @@ def resolve_append(self, ary, args, kws):
# return signature(SeriesType(types.boolean))

# alias of isna
@bound_function("series.isnull")
def resolve_isnull(self, ary, args, kws):
assert not kws
assert not args
return signature(SeriesType(types.boolean))
# @bound_function("series.isnull")
# def resolve_isnull(self, ary, args, kws):
# assert not kws
# assert not args
# return signature(SeriesType(types.boolean))

# @bound_function("series.notna")
# def resolve_notna(self, ary, args, kws):
Expand Down

0 comments on commit ba6e0a9

Please sign in to comment.