Skip to content

Instantly share code, notes, and snippets.

@deobald
Created January 18, 2024 01:31
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/1eeca3a08ca1490f49bb67a0fa31994b to your computer and use it in GitHub Desktop.
Save deobald/1eeca3a08ca1490f49bb67a0fa31994b to your computer and use it in GitHub Desktop.
Open an Apache Arrow IPC stream
import pyarrow as pa
stream = pa.input_stream('streamed.arrow')
buf = stream.read()
with pa.ipc.open_stream(buf) as reader:
schema = reader.schema
print(schema)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment