-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ERR: concat of non-unique join axes should have better error #13084
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
show |
The example provided is copy-pastable (it includes the pickled dataframes) Below is the output from df.info():
|
You can't concat non-unique indexes. It doesn't make sense as these are essentially gluing blocks.
I think we could give a better error message here. Want to take a crack at it? |
I'd be happy to take a crack at it. |
gr8! |
Duplicate of #6963. |
You get a confusing error message when trying to concat on non-unique (but also non-exactly-equal) indices. Small example:
Original reported issue by @gregsifr :
When trying to concat the dataframes using the following code the error shown below is returned:
However if the dataframes are sliced e.g. [:10] OR [10:], the concat works:
Output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: