[
https://issues.apache.org/jira/browse/ARROW-2666?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rok Mihevc updated ARROW-2666:
------------------------------
External issue URL: https://github.com/apache/arrow/issues/19059
> [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 Korn
> Priority: Major
> Labels: beginner, pull-request-available
> Fix For: 0.10.0
>
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> 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
(v8.20.10#820010)