Skip to content

Conversation

@meeseeksmachine
Copy link
Contributor

Backport PR #43152: BUG: Outer/right merge with EA dtypes cast to object

@lumberbot-app lumberbot-app bot added this to the 1.3.3 milestone Sep 3, 2021
@lumberbot-app lumberbot-app bot added Bug ExtensionArray Extending pandas with custom dtypes or arrays. Reshaping Concat, Merge/Join, Stack/Unstack, Explode labels Sep 3, 2021
@debnathshoham
Copy link
Contributor

Is this because, maybe any_numeric_ea_dtype is not defined in 1.3.x?

([1], "left"),
],
)
def test_merge_EA_dtype(self, any_numeric_ea_dtype, how, expected_data):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep need to change this for 1.3.x

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, I should make the change in this PR then, right?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes in this PR itself (as it targets the backport branch)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since I did not create this PR, not able to edit it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding this parametrisation definition should resolve this

@pytest.mark.parametrize(
    "any_numeric_ea_dtype",
    [
        "UInt8",
        "Int8",
        "UInt16",
        "Int16",
        "UInt32",
        "Int32",
        "UInt64",
        "Int64",
        "Float32",
        "Float64",
    ],
)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this any_nullable_numeric_dtype on 1.3.x?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah! right, I see it here
But again would need help from maintainer to amend this PR.

@pep8speaks
Copy link

pep8speaks commented Sep 4, 2021

Hello @meeseeksmachine! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2021-09-04 18:47:28 UTC

@lithomas1
Copy link
Contributor

Rats. The line got too long when I updated the name in the web editor. I'll fix it if all other CI passes.

@lithomas1
Copy link
Contributor

@github-actions pre-commit

Copy link
Contributor

@lithomas1 lithomas1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests seem to pass. LGTM after the pre-commit bot does its thing.

@lithomas1 lithomas1 closed this Sep 4, 2021
@lithomas1 lithomas1 reopened this Sep 4, 2021
@jreback jreback merged commit e25acb9 into pandas-dev:1.3.x Sep 4, 2021
@jreback
Copy link
Contributor

jreback commented Sep 4, 2021

thanks @debnathshoham and @lithomas1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug ExtensionArray Extending pandas with custom dtypes or arrays. Reshaping Concat, Merge/Join, Stack/Unstack, Explode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants