[ Web Proxy ]
URL:
Viewing: https://arrow.apache.org/docs/python/generated/../api/../generated/pyarrow.float32.html [Back]  [Original]

pyarrow.float32 — Apache Arrow v25.0.1
Back to top
Search the docs ...:

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
]

Web Proxy Viewer  |  New URL  |  Original Page