[ Web Proxy ]
URL:
Viewing: https://arrow.apache.org/docs/python/generated/../generated/../generated/pyarrow.compress.html [Back]  [Original]

pyarrow.compress — Apache Arrow v25.0.1
Back to top
Search the docs ...:

pyarrow.compress#

pyarrow.compress(buf, codec='lz4', asbytes=False, memory_pool=None)#

Compress data from buffer-like object.

Parameters:
bufpyarrow.Buffer, bytes, or other object supporting buffer protocol
codecstr, default lz4

Compression codec. Supported types: {brotli, gzip, lz4, lz4_raw, snappy, zstd}

asbytesbool, default False

Return result as Python bytes object, otherwise Buffer.

memory_poolMemoryPool, default None

Memory pool to use for buffer allocations, if any.

Returns:
compressedpyarrow.Buffer or bytes (if asbytes=True)

Web Proxy Viewer  |  New URL  |  Original Page