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

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

pyarrow.int16#

pyarrow.int16()#

Create instance of signed int16 type.

Examples

Create an instance of int16 type:

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

Create an array with int16 type:

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

Web Proxy Viewer  |  New URL  |  Original Page