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

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

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

Web Proxy Viewer  |  New URL  |  Original Page