Skip to content
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

Fix to_pandas for boolean ArrayXD #1904

Merged
merged 1 commit into from
Feb 18, 2021
Merged

Conversation

lhoestq
Copy link
Member

@lhoestq lhoestq commented Feb 18, 2021

As noticed in #1887 the conversion of a dataset with a boolean ArrayXD feature types fails because of the underlying ListArray conversion to numpy requires zero_copy_only=False.

zero copy is available for all primitive types except booleans
see https://arrow.apache.org/docs/python/generated/pyarrow.Array.html#pyarrow.Array.to_numpy
and https://issues.apache.org/jira/browse/ARROW-2871?jql=text%20~%20%22boolean%20to_numpy%22

cc @SBrandeis

@SBrandeis
Copy link
Contributor

Thanks!

@lhoestq lhoestq merged commit 7e772f0 into master Feb 18, 2021
@lhoestq lhoestq deleted the fix-to_pandas-for-boolean-arrayxd branch February 18, 2021 17:10
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.

None yet

2 participants