Skip to content

Instantly share code, notes, and snippets.

@deobald
Created January 18, 2024 01:31
Show Gist options
  • 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