Skip to content

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

Merged
merged 11 commits into from
Mar 23, 2021
Merged

Conversation

jbrockmendel
Copy link
Member

No description provided.

@jreback
Copy link
Contributor

jreback commented Mar 20, 2021

hmm 32-bit is failing here (one of the posix failed too, but that is unrelated i think)

@jreback jreback added 32bit 32-bit systems Clean labels Mar 20, 2021
@@ -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
Copy link
Member

@simonjayhawkins simonjayhawkins Mar 22, 2021

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

Copy link
Member Author

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

Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

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

sure

@jreback jreback added this to the 1.3 milestone Mar 23, 2021
Copy link
Contributor

@jreback jreback left a 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

@jbrockmendel
Copy link
Member Author

Ping

@jreback jreback merged commit f4b6cbe into pandas-dev:master Mar 23, 2021
@jbrockmendel jbrockmendel deleted the cln-intp-libs-3 branch March 23, 2021 20:39
vladu pushed a commit to vladu/pandas that referenced this pull request Apr 5, 2021
JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
32bit 32-bit systems Clean
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants