pyarrow.chunked_array#

pyarrow.chunked_array(arrays,type=None)#

Construct chunked array from list of array-like objects

Parameters:
arraysArray,list ofArray, orarray-like

Must all be the same data type. Can be empty only if type also passed.Any Arrow-compatible array that implements the Arrow PyCapsule Protocol(has an__arrow_c_array__ or__arrow_c_stream__ method) can bepassed as well.

typeDataType orstr coercible toDataType
Returns:
ChunkedArray

Examples

>>>importpyarrowaspa>>>pa.chunked_array([],type=pa.int8())<pyarrow.lib.ChunkedArray object at ...>[...]
>>>pa.chunked_array([[2,2,4],[4,5,100]])<pyarrow.lib.ChunkedArray object at ...>[  [    2,    2,    4  ],  [    4,    5,    100  ]]