Skip to content

Conversation

@vkverma9534
Copy link
Contributor

length_of_indexer computed the length of range objects using a manual arithmetic formula, which produced incorrect results for valid ranges.

This PR replaces that calculation with len(indexer) and adds a regression test to ensure correct behavior.

`length_of_indexer` computed the length of `range` objects using a manual
arithmetic formula, which produced incorrect results for valid ranges.

This PR replaces that calculation with `len(indexer)` and adds a regression test
to ensure correct behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant