Skip to content

fix: Empty RangeIndex Display #10594

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ianhi
Copy link
Contributor

@ianhi ianhi commented Aug 1, 2025

Semi following @anntzer's helpful suggestion of changing internal definition.

I didn't add the suggestion about [::2] to change the step size because I don't see how that would work give start, stop and size defined else where.

ianhi and others added 2 commits July 31, 2025 20:36
Following @anntzer's suggestion of changing internal definition
- Add explicit type checks with isinstance() before accessing RangeIndex.step
- Improves type safety and test robustness for issue pydata#10547

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
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.

Empty slice of DataArray with RangeIndex coordinate is unprintable
1 participant