-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: 1D slices over extension types turn into N-dimensional slices over ExtensionArrays #42787
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
Looks like there was a single test failure on one of the CI builds. I'm not able to reproduce that failure on my machine. Can someone with the appropriate permissions rerun the |
that should be fixed if you merge master |
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulation you did some good work ! Hopefully your backport PR will be tested by the continuous integration and merged soon! If these instruction are inaccurate, feel free to suggest an improvement. |
thanks @frreiss for the patch! |
@meeseeksdev backport 1.3.x |
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulation you did some good work ! Hopefully your backport PR will be tested by the continuous integration and merged soon! If these instruction are inaccurate, feel free to suggest an improvement. |
@frreiss if you wouldn't mind following the instructions above to manually backport this (above). |
…lices over ExtensionArrays (pandas-dev#42787)" This reverts commit 26e7c0f.
…n into N-dimensional slices over ExtensionArrays
…imensional slices over ExtensionArrays (#42850) Co-authored-by: Fred Reiss <[email protected]>
…er ExtensionArrays (pandas-dev#42787)
This PR contains a 1-line patch for issue #42430, plus a regression test to ensure the issue does not recur.
Before this change,
ExtensionBlock. getitem_block_index()
would request 2D slices of a block's underlying extension array, even though the__getitem__()
method ofExtensionArray
is (currently) only supposed to support 1D slicing. After the change,getitem_block_index()
requests 1D slices. The change also fixes some linter/type checking errors.