-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REGR: concat on index with duplicate labels fails #35238
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
It seems this is caused by #35098, not sure how though (cc @AlexKirko) |
it appears
|
maybe related #31326
|
Looking into this now. |
So to summarize, on master we have:
which indeed doesn't look correct (I would say that |
The actual bug with The question is though, if there are duplicates: how do we sort with In principle it should not sort, but what with the duplicate values that might be present in the right index? >>> pd.Index([1, 2, 3]).union(pd.Index([1, 2, 2, 4]), sort=False)
## hypothetical results
Int64Index([1, 2, 2, 3, 4], dtype='int64')
# or
Int64Index([1, 2, 3, 2, 4], dtype='int64') |
Yeah, the |
Agreed. And then we can keep the actual discussion about that in #31326 |
I'll do the revert. |
Noticed from failing geopandas tests:
this started failing recently on master:
While the expected result is (with automatic reindex of
df1
because concat aligns on the index):The text was updated successfully, but these errors were encountered: