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" ]