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
]