pyarrow.ChunkedArray

class pyarrow.ChunkedArray

Bases: object

Array backed via one or more memory chunks.

Warning

Do not call this class’s constructor directly.

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

chunk(self, i) Select a chunk by its index
iterchunks(self)
length(self)
slice(self[, offset, length]) Compute zero-copy slice of this ChunkedArray
to_pylist(self) Convert to a list of native Python objects.

Attributes

chunks
null_count Number of null entires
num_chunks Number of underlying chunks
type
chunk(self, i)

Select a chunk by its index

Parameters:i (int) –
Returns:pyarrow.Array
chunks
iterchunks(self)
length(self)
null_count

Number of null entires

Returns:int
num_chunks

Number of underlying chunks

Returns:int
slice(self, offset=0, length=None)

Compute zero-copy slice of this ChunkedArray

Parameters:
  • offset (int, default 0) – Offset from start of array to slice
  • length (int, default None) – Length of slice (default is until end of batch starting from offset)
Returns:

sliced (ChunkedArray)

to_pylist(self)

Convert to a list of native Python objects.

type