BUG: ExtensionArray no longer can be merged with Pandas 2.2 #57316
Labels
Bug
Regression
Functionality that used to work in a prior pandas version
Reshaping
Concat, Merge/Join, Stack/Unstack, Explode
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
We have an extension array, and after upgrading to Pandas 2.2. Some of our tests are beginning to fail (
test_merge_on_extension_array
). This is related to changes made in #56523. More specifically, these lines:pandas/pandas/core/reshape/merge.py
Lines 1751 to 1755 in 1aeaf6b
This will raise the error below, with the example above
Traceback
I can get things to run if I guard the check in a try/except like this:
Expected Behavior
It will work like Pandas 2.1 and merge the two dataframes.
Installed Versions
The text was updated successfully, but these errors were encountered: