-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
BUG: regression, is_unique is incorrect since pandas 2.1.0 #57911
Comments
While this is a lazy fix, I've found that in |
Hi, I can reproduce this on main - tentatively marking as for 2.2.2. I haven't looked into this further myself - but further investigation/PRs would be welcome. |
take |
thank you for working on a fix, would it be possible to roll the fix to the 2.1.x branch as well? |
We don't support the 2.1.x branch anymore, we will only release this on 2.2.x |
Quick update, in case anybody runs into this bug. The bug seems to be in the logic of
|
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
Hello,
We found a regression,
index.is_unique
is incorrect since pandas 2.1.0.I looked for open issues but did not find any fix or existing discussion.
Having a look at the changelog, there were lots of changes in 2.1.0 to introduce copy-on-write optimizations on the index.
I think the issue could be related to that, my best guess, maybe
index[2:]
cached something from the originalindex
that is no longer correct?Attaching a simple repro, it's very easy to reproduce. :)
Thank you.
Expected Behavior
Installed Versions
tested on:
The text was updated successfully, but these errors were encountered: