Skip to content

Empty KeyError when trying to merge Int32 and int32[pyarrow] columns #52406

Closed
@canutog

Description

@canutog

Hi, I'm using Pandas 2.0.0. When I tried to merge two int columns('int32', 'int32[pyarrow]') I recieved an empty KeyError.

When I try to merge columns of different dtypes like int and object the KeyError has an explicit message saying that you're trying to merge with two columns of different types.

But this does not happen for int32 and int32[pyarrow] or float for similar types between old format and pyarrow new format.

Could you please update, so that this error can be identified more easily? I spent aproximately 4h figuring this out.
Thanks

merging_int_and_int pyarrow
code_to_reproduce_error.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Arrowpyarrow functionalityReshapingConcat, Merge/Join, Stack/Unstack, Explode

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions