Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Python] Support protocols to extract Arrow objects from third-party classes #20293

Closed
asfimport opened this issue Nov 17, 2018 · 2 comments
Closed

Comments

@asfimport
Copy link
Collaborator

asfimport commented Nov 17, 2018

In the style of NumPy's __array__, we should be able to ask inputs to pa.array, pa.Table.from_X, ... whether they can convert themselves to Arrow objects. This would allow for example to turn objects that hold an Arrow object internally to expose them directly instead of going a conversion path.

My current use case involves Pandas ExtensionArray instances that internally have Arrow objects and should be reused when we pass the whole DataFrame to pa.Table.from_pandas.

Reporter: Uwe Korn / @xhochy
Assignee: Joris Van den Bossche / @jorisvandenbossche

Related issues:

PRs and other links:

Note: This issue was originally created as ARROW-3829. Please see the migration documentation for further details.

@asfimport
Copy link
Collaborator Author

Wes McKinney / @wesm:
I'm moving this to 0.13. If you submit an alpha / experimental version of this for 0.12, please go ahead =)

@asfimport
Copy link
Collaborator Author

Wes McKinney / @wesm:
Issue resolved by pull request 5106
#5106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants