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

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

pyarrow.large_list#

pyarrow.large_list(value_type) LargeListType#

Create LargeListType instance from child data type or field.

This data type may not be supported by all Arrow implementations. Unless you need to represent data larger than 2**31 elements, you should prefer list_().

Parameters:
value_typeDataType or Field
Returns:
list_typeDataType

Examples

Create an instance of LargeListType:

>>> import pyarrow as pa
>>> pa.large_list(pa.int8())
LargeListType(large_list<item: int8>)

Use the LargeListType to create an array:

>>> pa.array([[-1, 3]] * 5, type=pa.large_list(pa.int8()))
<pyarrow.lib.LargeListArray object at ...>
[
  [
    -1,
    3
  ],
  [
    -1,
    3
  ],
...

Web Proxy Viewer  |  New URL  |  Original Page