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

refactor: use pa.table.cast in delta_arrow_schema_from_pandas #1573

Merged

Conversation

ion-elgreco
Copy link
Collaborator

Description

I noticed that pa.Table.from_pandas was called twice even after the schema was constructed. Seems more efficient to just cast the existing that data has been read into memory with the newly created schema.

@github-actions github-actions bot added the binding/python Issues for the Python package label Jul 28, 2023
@ion-elgreco ion-elgreco changed the title chore: Change to delta_arrow_schema_from_pandas to use pa.table.cast chore: use pa.table.cast in delta_arrow_schema_from_pandas Jul 28, 2023
@ion-elgreco ion-elgreco changed the title chore: use pa.table.cast in delta_arrow_schema_from_pandas refactor: use pa.table.cast in delta_arrow_schema_from_pandas Jul 31, 2023
@wjones127 wjones127 enabled auto-merge (squash) August 6, 2023 02:09
@wjones127 wjones127 merged commit b29766a into delta-io:main Aug 6, 2023
21 checks passed
polynomialherder pushed a commit to polynomialherder/delta-rs that referenced this pull request Aug 15, 2023
…io#1573)

# Description
I noticed that `pa.Table.from_pandas` was called twice even after the
schema was constructed. Seems more efficient to just cast the existing
that data has been read into memory with the newly created schema.

Co-authored-by: Will Jones <willjones127@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binding/python Issues for the Python package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants