Skip to content

ER: Uninformative error message when concat-ing Series with frames #4608

Closed
@cpcloud

Description

@cpcloud
In [164]: df = DataFrame(randn(10, 1))

In [165]: concat([df[0], df], axis=1)

throws an AttributeError. It should just say something about incompatible types in concat.

I wonder if it's worth allowing mixed types where it makes sense. E.g., concat-ing a Series and a DataFrame. It might be more consistent with the fact that Series is now an NDFrame.

Metadata

Metadata

Assignees

Labels

Error ReportingIncorrect or improved errors from pandas

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions