Skip to content

BUG: Fixed IntegerArray.__array_ufunc__ with nout #36913

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

Merged

Conversation

TomAugspurger
Copy link
Contributor

We forgot to return.

@TomAugspurger TomAugspurger force-pushed the integer-array-ufunc-binary-out branch from 8fd238f to d3f63c1 Compare October 6, 2020 11:53
@@ -64,6 +64,20 @@ def test_ufuncs_binary_int(ufunc):
tm.assert_extension_array_equal(result, expected)


def test_ufunc_binary_output():
a = integer_array([1, 2, np.nan])
result = np.modf(a)
Copy link
Member

Choose a reason for hiding this comment

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

could parametrize over the (few?) functions that could go through here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The binary ufuncs that overlap with dunder methods hit a different code path. I'm not sure of others (and I'm also not sure I see the value in parametrizing over them. Given the current structure of the code they should be redundant).

@jbrockmendel jbrockmendel merged commit 4e55346 into pandas-dev:master Oct 6, 2020
@jbrockmendel
Copy link
Member

thanks @TomAugspurger

@TomAugspurger TomAugspurger deleted the integer-array-ufunc-binary-out branch October 6, 2020 18:42
kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants