You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Uwe L. Korn (JIRA)" <ji...@apache.org> on 2018/06/02 16:42:00 UTC

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

     [ https://issues.apache.org/jira/browse/ARROW-2666?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Uwe L. Korn updated ARROW-2666:
-------------------------------
    Labels: beginner  (was: )

> [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
>            Priority: Major
>              Labels: beginner
>
> 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)