Skip to content

Instantly share code, notes, and snippets.

@deobald
Last active January 18, 2024 01:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deobald/a65ca0f57d66041bf66d41d0509a981f to your computer and use it in GitHub Desktop.
Save deobald/a65ca0f57d66041bf66d41d0509a981f to your computer and use it in GitHub Desktop.
View Apache Arrow IPC File
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