[
https://issues.apache.org/jira/browse/ARROW-2666?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wes McKinney resolved ARROW-2666.
---------------------------------
Resolution: Fixed
Fix Version/s: 0.10.0
Issue resolved by pull request 2365
[https://github.com/apache/arrow/pull/2365]
> [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, pull-request-available
> Fix For: 0.10.0
>
> Time Spent: 1h 10m
> 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
(v7.6.3#76005)