pyarrow.bool_

pyarrow.bool_()

Create instance of boolean type.

Examples

Create an instance of a boolean type:

>>> import pyarrow as pa
>>> pa.bool_()
DataType(bool)
>>> print(pa.bool_())
bool

Create a Field type with a boolean type and a name:

>>> pa.field('bool_field', pa.bool_())
pyarrow.Field<bool_field: bool>