Last active
January 18, 2024 01:30
-
-
Save deobald/a65ca0f57d66041bf66d41d0509a981f to your computer and use it in GitHub Desktop.
View Apache Arrow IPC File
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyarrow as pa | |
stream = pa.input_stream('hello.arrow') | |
buf = stream.read() | |
with pa.ipc.open_file(buf) as reader: | |
schema = reader.schema | |
print(schema) | |
reader.get_batch(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment