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

Conversation

@Rubtsowa
Copy link
Contributor

No description provided.

@Rubtsowa Rubtsowa requested a review from akharche December 25, 2019 08:30
@pep8speaks
Copy link

pep8speaks commented Dec 25, 2019

Hello @Rubtsowa! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2019-12-27 18:51:51 UTC


@njit
def series_str_isspace():
series = pd.Series([' ', ' c ', ' b ', ' a ']) # Series of ' ', ' c ', ' b ', ' a '
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment is redundant here

item_count = len(self._data)
result = numpy.empty(item_count, numba.types.boolean)
for idx, item in enumerate(self._data._data):
result[idx] = item.isspace()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be, it's better to cut result = numpy.array([item.isspace() for item in self._data._data])

@AlexanderKalistratov AlexanderKalistratov merged commit 3782e01 into IntelPython:master Dec 27, 2019
@Rubtsowa Rubtsowa deleted the add_isspace branch April 7, 2020 07:05
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.

4 participants