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
ERR: better error message for trying to concat non-pandas objects #15796
Comments
I would like to take care of this one. There could be more than two objects in the concatenation, so how about "cannot concatenate objects of type [<class 'str'>], all objects must be pandas objects"? |
@petioptrv yes that's why I put the list comprehension and set things. Should work with many objects. Its just meant to be more instructive to the user. |
I think "pandas objects" is still a bit vague. Eg an Index, or a Timestamp are also pandas objects, but cannot be concatenated. eg
|
Looking at this. |
trivially
non-NDFrame
->non-pandas
. but I think even better would be something likeThe text was updated successfully, but these errors were encountered: