Skip to content

Conversation

zhiqiangxu
Copy link
Contributor

There's no need to continue the loop when the result is destined to be None.

@jbrockmendel
Copy link
Member

I prefer single-return, but not a huge deal

@zhiqiangxu
Copy link
Contributor Author

I prefer single-return, but not a huge deal

Switched to using break instead.

@mroeschke mroeschke added the Index Related to the Index class or subclasses label Aug 4, 2025
@mroeschke mroeschke added this to the 3.0 milestone Aug 4, 2025
@mroeschke mroeschke merged commit ff2b77c into pandas-dev:main Aug 4, 2025
47 checks passed
@mroeschke
Copy link
Member

Thanks @zhiqiangxu

eicchen pushed a commit to eicchen/pandas that referenced this pull request Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Index Related to the Index class or subclasses
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants