-
-
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
REGR: changed return type for multi-dimensional indexing #31870
Comments
Apparently this wasn't really included well in the whatsnew note (which only mentioned the deprecation), but this change was intentional.
That's because it's a deprecation warning (and not a future warning); python changed the default visibility of warnings recently.
Please do. |
Thanks for the quick response, that explains things a bit. After tracking down the differences and raising this issue, I now also see that it can be quite easily solved in my case (as the warning suggests) by multi-indexing into the underlying |
How is that not cross-compatible? I would think that works for both pandas 0.25.x and 1.0.x? |
You're right, after rearranging the code, it now works for both. I was thinking of something else when I wrote that and was wrong. |
I kept my code free of deprecation warnings for 0.25.3 but upgrading still broke it.
I can now see on the tracker that multi-dimensional indexing has been deprecated #27837, #30588 #30867, but it seems the introduction of the deprecation warning has changed the behaviour itself.
On
v1.0.1
, this yields annp.array
instead of apd.Index
, and so the.values
call fails.Note also that the warning is (at least for me) not raised on python 3.6, only on 3.7.
If desired, I can flesh out the reasons for needing this multi-dimensional indexing. I wonder how I'll be able to replace it.
The text was updated successfully, but these errors were encountered: