Skip to content

CLN: Deduplicate code in duplicated #49550

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 7, 2022

Conversation

phofl
Copy link
Member

@phofl phofl commented Nov 5, 2022

cc @mroeschke
I think you asked for this when implementing the mask support

for i in range(n - 1, -1, -1):
# equivalent: range(n)[::-1], which cython doesn't like in nogil
Copy link
Member

Choose a reason for hiding this comment

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

is this comment no longer relevant?

Copy link
Member Author

@phofl phofl Nov 5, 2022

Choose a reason for hiding this comment

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

It is still relevant, but imo

range(n - 1, -1, -1)

is clearer than range(n)[::-1] anyway, so thought removing this would be fine.

@mroeschke mroeschke added the Clean label Nov 7, 2022
@mroeschke mroeschke added this to the 2.0 milestone Nov 7, 2022
@mroeschke mroeschke merged commit 8272f1d into pandas-dev:main Nov 7, 2022
@mroeschke
Copy link
Member

Thanks @phofl

phofl added a commit to phofl/pandas that referenced this pull request Nov 9, 2022
* CLN: Deduplicate code in duplicated

* Clean

* Fix
noatamir pushed a commit to noatamir/pandas that referenced this pull request Nov 9, 2022
* CLN: Deduplicate code in duplicated

* Clean

* Fix
@phofl phofl deleted the cln_deduplicate_duplicated branch November 10, 2022 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants