-
Notifications
You must be signed in to change notification settings - Fork 61
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is better to reuse isna() algorithm (directly call the function which already implemented, and invert the result.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't we like to support indexes for the functionality? Maybe to add appropriate tests?
Parameters | ||
----------- | ||
self : :obj:`pandas.Series` object | ||
input argument |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is too long indentation.
raise TypingError('{} The object must be a pandas.series. Given: {}'.format(_func_name, self)) | ||
|
||
if isinstance(self.data.dtype, types.Number): | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the empty line after if-statement is excess.
if isinstance(self.data.dtype, types.Number): | ||
|
||
def hpat_pandas_series_notna_impl(self): | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the empty line as the first line of the function is excess.
hpat/tests/test_series.py
Outdated
data_test = [[6, 6, 2, 1, 3, 3, 2, 1, 2], | ||
[1.1, 0.3, 2.1, 1, 3, 0.3, 2.1, 1.1, 2.2], | ||
[6, 6.1, 2.2, 1, 3, 0, 2.2, 1, 2], | ||
[6, 6, 2, 1, 3, np.inf, np.nan, np.nan, np.nan], | ||
[3., 5.3, np.nan, np.nan, np.inf, np.inf, 4.4, 3.7, 8.9] | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I propose to use globally defined data as input data in tests: f2435b0#diff-deca39d332649cea819383154a5d2cb3R39-R62
d4e8311
to
085ae9a
Compare
No description provided.