-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
CLN: ensure_platform_int earlier #40528
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
Conversation
hmm 32-bit is failing here (one of the posix failed too, but that is unrelated i think) |
6405ccf
to
24527a4
Compare
pandas/core/arrays/categorical.py
Outdated
@@ -1980,9 +1980,9 @@ def _reverse_indexer(self) -> Dict[Hashable, np.ndarray]: | |||
""" | |||
categories = self.categories | |||
r, counts = libalgos.groupsort_indexer( | |||
self.codes.astype("int64", copy=False), categories.size | |||
libalgos.ensure_platform_int(self.codes), categories.size |
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.
IIUC ensure_platform_int should be imported from pandas.core.dtypes.common from the Python code see #40567
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.
sure, mind if i do this in the next pass? have a branch on deck
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.
ok to do later, but maybe should rebase this PR anyhow as @simonjayhawkins change was merged
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.
sure
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.
lgtm ping on green
Ping |
No description provided.