-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
Patch - updates maybe_indices_to_slice to use intp_t #59537
Conversation
Updates maybe_indices_to_slice to use uint64 allowing massive dataframes to be manipulated (see pandas-dev#59531)
Update maybe_indices_to_slice to use uint64_t allowing manipulation of massive data frames (See pandas-dev#59531)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inp_t is the proper size for an indexer - does it fix things if you try using that consistently?
Happy to give it a try. I'll let you know. |
Do you mean intp_t ? If so, changing max_len to intp_t and np.intp respectively in lib.pyx and lib.pyi (to match the array definitions) also produces expected results:
Very minor changes but happy to submit another PR if that works for you. |
Yes that's correct. You can just update this PR - no need to create another |
Revised to use intp_t for max_len in maybe_indices_to_slice. As per conversation with WillAyd revised patch as intp_t is the proper size for an indexer.
Updated may_indices_to_slice to use np.intp for max_len. As per conversation with WillAyd revised patch as intp_t is the proper size for an indexer.
Got there.... Many thanks for your help! :) |
@benjamindonnachie great I think this change looks pretty good! Let's see if CI is green. You will also want to add a whatsnew entry, which can be added to pandas/doc/source/whatsnew/v3.0.0.rst` You can add it to the section on Bug Fixes > Indexing (just follow the same pattern you see for other notes already there) |
Updated whatsnew to reflect fix to maybe_indices_to_slice to address OverflowError.
Whatsnew/v3.0.0.rst updated. Fingers crossed! :) |
This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this. |
Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen. |
@mroeschke I'm not sure what else you need given the minor nature of this patch. |
It appeared the code checks were not all passing https://github.com/pandas-dev/pandas/actions/runs/10938423968/job/30366432851 |
@benjamindonnachie any plans to revive this PR? Otherwise, I will - I'm affected by this bug as well. |
Opened #61080 as a replacement, but left @benjamindonnachie as the original author. |
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.