-
Notifications
You must be signed in to change notification settings - Fork 4k
Open
Labels
Component: PythonStatus: stale-warningIssues and PRs flagged as stale which are due to be closed if no indication otherwiseIssues and PRs flagged as stale which are due to be closed if no indication otherwiseType: enhancement
Description
pa.array supports optimized creation from an object with the __arrow_array__ method, or from a literal NumPy ndarray. But there's a performance gap if the input object has only an __array__ method, as it isn't used.
So the user has to know to call np.asarray first. And even if the original object could be extended to support 'arrow_array, it doesn't seems like a great workaround if all that method would do is call pa.array(np.asarray(self))`.
Related issues:
Note: This issue was originally created as ARROW-15202. Please see the migration documentation for further details.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Component: PythonStatus: stale-warningIssues and PRs flagged as stale which are due to be closed if no indication otherwiseIssues and PRs flagged as stale which are due to be closed if no indication otherwiseType: enhancement