Wes McKinney created ARROW-2871:
-----------------------------------

             Summary: [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
             Fix For: 0.10.0


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
(v7.6.3#76005)

Reply via email to