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

Implement notna #247

Merged
merged 5 commits into from
Oct 26, 2019
Merged

Implement notna #247

merged 5 commits into from
Oct 26, 2019

Conversation

1e-to
Copy link
Contributor

@1e-to 1e-to commented Oct 21, 2019

No description provided.

Copy link
Contributor

@shssf shssf left a 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.

Copy link
Contributor

@densmirn densmirn left a 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
Copy link
Contributor

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):

Copy link
Contributor

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):

Copy link
Contributor

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.

Comment on lines 1766 to 1771
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]
]
Copy link
Contributor

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

@shssf shssf merged commit a6aadc5 into IntelPython:master Oct 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants