[ 
https://issues.apache.org/jira/browse/ARROW-2871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17659896#comment-17659896
 ] 

Rok Mihevc commented on ARROW-2871:
-----------------------------------

This issue has been migrated to [issue 
#15753|https://github.com/apache/arrow/issues/15753] on GitHub. Please see the 
[migration documentation|https://github.com/apache/arrow/issues/14542] for 
further details.

> [Python] Array.to_numpy is invalid for boolean arrays
> -----------------------------------------------------
>
>                 Key: ARROW-2871
>                 URL: https://issues.apache.org/jira/browse/ARROW-2871
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>            Reporter: Wes McKinney
>            Assignee: Wes McKinney
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.10.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> This should raise for the time being:
> {code}
> In [1]: import pyarrow as pa
> In [2]: arr = pa.array([True, False, True])
> In [3]: arr
> Out[3]: 
> <pyarrow.lib.BooleanArray object at 0x7f051c73bcc8>
> [
>   True,
>   False,
>   True
> ]
> In [4]: arr.to_numpy()
> Out[4]: array([ True])
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to