-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Behavior change in Index.equals from 0.18.0 to 0.19.0 -- intentional? #14411
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
Comments
Traditionally, `pandas.Index([1, 2]).equals([1, 2])` returned True. In 0.19.0, it returns False, and we have to explicitly upcast the argument to an Index to get the test we want. pandas-dev/pandas#14411
Well, we had some discussion about this, see #13986 (comment) (I thought we had a longer discussion somewhere else, but can't find it directly), but I think I lost the discussion for allowing this. |
I can see the argument for the new behavior, but it was a backwards incompatible change with no deprecation, so wasn't sure what was going on. I've already worked around it for patsy. |
Traditionally, we have:
But this changed
Looks like it might not be intentional so FYI.
(Noticed because it broke a few tests in the patsy test suite.)
The text was updated successfully, but these errors were encountered: