pyarrow.list_view#

pyarrow.list_view(value_type) ListViewType#

Create ListViewType instance from child data type or field.

This data type may not be supported by all Arrow implementations because it is an alternative to the ListType.

Parameters:
value_typeDataType or Field
Returns:
list_view_typeDataType

Examples

Create an instance of ListViewType:

>>> import pyarrow as pa
>>> pa.list_view(pa.string())
ListViewType(list_view<item: string>)