Skip to content

TestBaseCasting.test_to_numpy fails for ExtensionArrays that yield nested numpy arrays #30841

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

Closed
xhochy opened this issue Jan 9, 2020 · 0 comments · Fixed by #30842
Closed

Comments

@xhochy
Copy link
Contributor

xhochy commented Jan 9, 2020

The test case fails when data is e.g. np.array([np.array([np.nan, None], dtype="object"), None], dtype="object").

def test_to_numpy(self, data):
        expected = np.asarray(data)

        result = data.to_numpy()
>       self.assert_equal(result, expected)

This happens in fletcher for the list<item: string> type.

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 a pull request may close this issue.

1 participant