-
-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
COMPAT: Ensure rolling indexers return intp #35228
Conversation
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.
you can leave entirely in int64 as we do now for all rolling ops
except when you are going to .take() something u have to wrap ensure_intp_dtype around the array
windows should be affected but pass by this change
Wouldn't it be better if all the indexers were just platform int to begin with so we don't have to worry about casting? |
no int64 are fine |
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.
@mroeschke none of this is needed or a good idea. you only need to ensure_platform_int when indexing via .take
Going to start over in a new branch |
How do we know that it's safe to cast at take time? Ensuring that indicies are the platform int seems like the way to go. |
@mroeschke in case it helps, here's the dockerfile I'm using locally
Then run it and mount the |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
Unable to test this locally for the MacPython build, but I am pretty sure this is the main culprit of that failing job.