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 ]