DAGDA SEARCH | Back to results | Support

pyarrow.large_string — Apache Arrow v26.0.1

Source: https://arrow.apache.org/docs/python/generated/pyarrow.large_string.html

pyarrow.large_string#

pyarrow.large_string()#

Create large UTF8 variable-length string type.

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

Examples

Create an instance of large UTF8 variable-length binary type:

>>> import pyarrow as pa
>>> pa.large_string()
DataType(large_string)

and use the type to create an array:

>>> pa.array(['foo', 'bar'] * 50, type=pa.large_string())
<pyarrow.lib.LargeStringArray object at ...>
[
  "foo",
  "bar",
  ...
  "foo",
  "bar"
]
On this page Edit on GitHub