pyarrow.int32ΒΆ

pyarrow.int32()ΒΆ

Create instance of signed int32 type.

Examples

Create an instance of int32 type:

>>> import pyarrow as pa
>>> pa.int32()
DataType(int32)
>>> print(pa.int32())
int32

Create an array with int32 type:

>>> pa.array([0, 1, 2], type=pa.int32())
<pyarrow.lib.Int32Array object at ...>
[
  0,
  1,
  2
]