8000 refactor: `from_arrow` use protocol typehints by ion-elgreco · Pull Request #917 · apache/datafusion-python · GitHub
[go: up one dir, main page]

Skip to content

refactor: from_arrow use protocol typehints #917

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

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

ion-elgreco
Copy link
Contributor

@timsaucer we could probably drop the rust code for from_pandas and from_polars and keep those in Python as aliases but just call from_arrow or even drop them. The only thing is we will have to add minimum dependencies since they recently added arrow_c_stream support. For polars that would be v1.3. For pandas I would have to check.

Rationale for this change

  • better type hint than Any

What changes are included in this PR?

  • adds type hints for types that have arrow_c_stream

Are there any user-facing changes?

None

@timsaucer
Copy link
Contributor

LGTM. In regards to dropping the from_pandas and from_polars, I don't think we want to impose people upgrade to the very latest quite yet. I'd recommend revisiting that in ~6months just for stability of the ecosystem.

< 86BF /td>

@timsaucer timsaucer merged commit 494b89a into apache:main Oct 15, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0