Skip to content

Replace RangeIndex._start/_stop/_step with _range - #15576

Merged
rapids-bot[bot] merged 9 commits into
NVIDIA:branch-24.06from
mroeschke:ref/rangeindex/attrs
Apr 24, 2024
Merged

Replace RangeIndex._start/_stop/_step with _range#15576
rapids-bot[bot] merged 9 commits into
NVIDIA:branch-24.06from
mroeschke:ref/rangeindex/attrs

Conversation

@mroeschke

Copy link
Copy Markdown
Contributor

Description

The ._start/_stop/_step attributes are wholly redundant with the similar attributes on a range object, so replacing with those attributes where needed

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@mroeschke mroeschke added Python Affects Python cuDF API. improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Apr 19, 2024
@mroeschke
mroeschke requested a review from a team as a code owner April 19, 2024 22:20
@mroeschke
mroeschke requested review from isVoid and vyasr April 19, 2024 22:20

@vyasr vyasr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice little improvement. I left one suggestion that I think is worth implementing and one question, but I went ahead and approved since I don't think I need to look at this again once you address the suggestion (the helper function) if you think it makes sense.

Comment thread python/cudf/cudf/core/index.py
Comment thread python/cudf/cudf/core/index.py Outdated
@mroeschke

Copy link
Copy Markdown
Contributor Author

/merge

@rapids-bot
rapids-bot Bot merged commit 8b4dc91 into NVIDIA:branch-24.06 Apr 24, 2024
@mroeschke
mroeschke deleted the ref/rangeindex/attrs branch April 24, 2024 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improvement / enhancement to an existing function non-breaking Non-breaking change Python Affects Python cuDF API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants