DAGDA SEARCH | Back to results | Support

pyarrow.utf8 — Apache Arrow v26.0.1

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

pyarrow.utf8#

pyarrow.utf8()#

Alias for string().

Examples

Create an instance of a string type:

>>> import pyarrow as pa
>>> pa.utf8()
DataType(string)

and use the string type to create an array:

>>> pa.array(['foo', 'bar', 'baz'], type=pa.utf8())
<pyarrow.lib.StringArray object at ...>
[
  "foo",
  "bar",
  "baz"
]
On this page Edit on GitHub