A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://arrow.apache.org/docs/python/api/../generated/pyarrow.bool8.html below:

pyarrow.bool8 — Apache Arrow v21.0.0

pyarrow.bool8#
pyarrow.bool8()#

Create instance of bool8 extension type.

Returns:
typeBool8Type

Examples

Create an instance of bool8 extension type:

>>> import pyarrow as pa
>>> type = pa.bool8()
>>> type
Bool8Type(extension<arrow.bool8>)

Inspect the data type:

>>> type.storage_type
DataType(int8)

Create a table with a bool8 array:

>>> arr = [-1, 0, 1, 2, None]
>>> storage = pa.array(arr, pa.int8())
>>> other = pa.ExtensionArray.from_storage(type, storage)
>>> pa.table([other], names=["unknown_col"])
pyarrow.Table
unknown_col: extension<arrow.bool8>
----
unknown_col: [[-1,0,1,2,null]]

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4