Thanks to visit codestin.com
Credit goes to github.com

Skip to content

BUG: Fix np.lib.nanfunctions on object arrays #9013

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
merged 2 commits into from
Apr 29, 2017

Conversation

eric-wieser
Copy link
Member

This is a workaround until the harder problems of #9009 and #8975 are fixed.

Fixes #8974 and #9008

with warnings.catch_warnings(record=True) as w:
warnings.simplefilter('always')
# assert_equal does not work on object arrays of nan
assert_equal(list(np.nanmin(arr, axis=1)), [1.0, 4.0, np.nan])
Copy link
Member Author

Choose a reason for hiding this comment

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

More details at #9023

@charris
Copy link
Member

charris commented Apr 29, 2017

LGTM, thanks Eric.

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

Successfully merging this pull request may close these issues.

BUG: mixed object arrays and nan functions
2 participants