DAGDA SEARCH | Back to results | Support

pyarrow.float32 — Apache Arrow v26.0.1

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

pyarrow.float32#

pyarrow.float32()#

Create single-precision floating point type.

Examples

Create an instance of float32 type:

>>> import pyarrow as pa
>>> pa.float32()
DataType(float)
>>> print(pa.float32())
float

Create an array with float32 type:

>>> pa.array([0.0, 1.0, 2.0], type=pa.float32())
<pyarrow.lib.FloatArray object at ...>
[
  0,
  1,
  2
]
On this page Edit on GitHub