OSDir


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jira] [Created] (ARROW-2666) [Python] numpy.asarray should trigger to_pandas on Array/ChunkedArray


Uwe L. Korn created ARROW-2666:
----------------------------------

             Summary: [Python] numpy.asarray should trigger to_pandas on Array/ChunkedArray
                 Key: ARROW-2666
                 URL: https://issues.apache.org/jira/browse/ARROW-2666
             Project: Apache Arrow
          Issue Type: Improvement
          Components: Python
            Reporter: Uwe L. Korn


Calling {{numpy.asarray}} on an instance of {{Array/ChunkedArray/Column}} should call the {{to_pandas}} method of these classes. Currently it falls back to using the iterator interface, thus we will always get an {{object}} array of {{pa.lib.ScalarValue}}.

To implement this, one has to implement the {{__array__}} method on all of them.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)