Skip to content

COMPAT: Ensure rolling indexers return intp during take operations #35875

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 4 commits into from
Aug 24, 2020

Conversation

mroeschke
Copy link
Member

@mroeschke mroeschke commented Aug 24, 2020

Tested locally with @TomAugspurger docker container and the tests were working: #35228 (comment)

@mroeschke mroeschke added Compat pandas objects compatability with Numpy or Python functions Window rolling, ewma, expanding labels Aug 24, 2020
@mroeschke mroeschke added this to the 1.2 milestone Aug 24, 2020
@@ -298,7 +299,7 @@ def get_window_bounds(
window_indicies_start = 0
for key, indicies in self.groupby_indicies.items():
if self.index_array is not None:
index_array = self.index_array.take(indicies)
index_array = self.index_array.take(ensure_platform_int(indicies))
Copy link
Member

Choose a reason for hiding this comment

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

indicies -> indices?

@jbrockmendel
Copy link
Member

nice!

Matt Roeschke added 2 commits August 24, 2020 11:33
@jreback jreback merged commit 5a0059d into pandas-dev:master Aug 24, 2020
@jreback
Copy link
Contributor

jreback commented Aug 24, 2020

thanks @mroeschke

@mroeschke mroeschke deleted the bug/intp_rolling branch August 25, 2020 03:11
@simonjayhawkins simonjayhawkins mentioned this pull request Sep 8, 2020
@simonjayhawkins
Copy link
Member

This should backport automatically and fix the failing groupby 32bit tests #37466 (comment)

after backporting this could also revert #36220

@simonjayhawkins
Copy link
Member

@meeseeksdev backport 1.1.x

meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Oct 28, 2020
simonjayhawkins pushed a commit that referenced this pull request Oct 28, 2020
…eturn intp during take operations) (#37471)

Co-authored-by: Matthew Roeschke <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compat pandas objects compatability with Numpy or Python functions Window rolling, ewma, expanding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Various 32-bit failures at MacPython/pandas-wheels CI: MacPython failing test_consistency_with_window
5 participants