Arrays and Scalars#

Factory Functions#

These functions create new Arrow arrays:

array(obj[, type, mask, size, from_pandas])

Create pyarrow.Array instance from a Python object.

nulls(size[, type])

Create a strongly-typed Array instance with all elements null.

Array Types#

An array’s Python class depends on its data type. Concrete array classes may expose data type-specific methods or properties.

Array()

The base class for all Arrow arrays.

BooleanArray

Concrete class for Arrow arrays of boolean data type.

FloatingPointArray

A base class for Arrow floating-point arrays.

IntegerArray

A base class for Arrow integer arrays.

Int8Array

Concrete class for Arrow arrays of int8 data type.

Int16Array

Concrete class for Arrow arrays of int16 data type.

Int32Array

Concrete class for Arrow arrays of int32 data type.

Int64Array

Concrete class for Arrow arrays of int64 data type.

NullArray

Concrete class for Arrow arrays of null data type.

NumericArray

A base class for Arrow numeric arrays.

UInt8Array

Concrete class for Arrow arrays of uint8 data type.

UInt16Array

Concrete class for Arrow arrays of uint16 data type.

UInt32Array

Concrete class for Arrow arrays of uint32 data type.

UInt64Array

Concrete class for Arrow arrays of uint64 data type.

HalfFloatArray

Concrete class for Arrow arrays of float16 data type.

FloatArray

Concrete class for Arrow arrays of float32 data type.

DoubleArray

Concrete class for Arrow arrays of float64 data type.

BinaryArray

Concrete class for Arrow arrays of variable-sized binary data type.

StringArray

Concrete class for Arrow arrays of string (or utf8) data type.

FixedSizeBinaryArray

Concrete class for Arrow arrays of a fixed-size binary data type.

LargeBinaryArray

Concrete class for Arrow arrays of large variable-sized binary data type.

LargeStringArray

Concrete class for Arrow arrays of large string (or utf8) data type.

BinaryViewArray

Concrete class for Arrow arrays of variable-sized binary view data type.

StringViewArray

Concrete class for Arrow arrays of string (or utf8) view data type.

Time32Array

Concrete class for Arrow arrays of time32 data type.

Time64Array

Concrete class for Arrow arrays of time64 data type.

Date32Array

Concrete class for Arrow arrays of date32 data type.

Date64Array

Concrete class for Arrow arrays of date64 data type.

TimestampArray

Concrete class for Arrow arrays of timestamp data type.

DurationArray

Concrete class for Arrow arrays of duration data type.

MonthDayNanoIntervalArray

Concrete class for Arrow arrays of interval[MonthDayNano] type.

Decimal128Array

Concrete class for Arrow arrays of decimal128 data type.

DictionaryArray

Concrete class for dictionary-encoded Arrow arrays.

ListArray

Concrete class for Arrow arrays of a list data type.

FixedSizeListArray

Concrete class for Arrow arrays of a fixed size list data type.

LargeListArray

Concrete class for Arrow arrays of a large list data type.

ListViewArray

Concrete class for Arrow arrays of a list view data type.

LargeListViewArray

Concrete class for Arrow arrays of a large list view data type.

MapArray

Concrete class for Arrow arrays of a map data type.

RunEndEncodedArray

Concrete class for Arrow run-end encoded arrays.

StructArray

Concrete class for Arrow arrays of a struct data type.

UnionArray

Concrete class for Arrow arrays of a Union data type.

ExtensionArray

Concrete class for Arrow extension arrays.

FixedShapeTensorArray

Concrete class for fixed shape tensor extension arrays.

Scalars#

This function constructs a new Arrow scalar:

scalar(value[, type, from_pandas])

Create a pyarrow.Scalar instance from a Python object.

A scalar’s python class depends on its data type. Concrete scalar classes may expose data type-specific methods or properties.

NA

Concrete class for null scalars.

Scalar()

The base class for scalars.

BooleanScalar

Concrete class for boolean scalars.

Int8Scalar

Concrete class for int8 scalars.

Int16Scalar

Concrete class for int16 scalars.

Int32Scalar

Concrete class for int32 scalars.

Int64Scalar

Concrete class for int64 scalars.

UInt8Scalar

Concrete class for uint8 scalars.

UInt16Scalar

Concrete class for uint16 scalars.

UInt32Scalar

Concrete class for uint32 scalars.

UInt64Scalar

Concrete class for uint64 scalars.

HalfFloatScalar

Concrete class for float scalars.

FloatScalar

Concrete class for float scalars.

DoubleScalar

Concrete class for double scalars.

BinaryScalar

Concrete class for binary-like scalars.

StringScalar

Concrete class for string-like (utf8) scalars.

FixedSizeBinaryScalar

LargeBinaryScalar

LargeStringScalar

BinaryViewScalar

StringViewScalar

Time32Scalar

Concrete class for time32 scalars.

Time64Scalar

Concrete class for time64 scalars.

Date32Scalar

Concrete class for date32 scalars.

Date64Scalar

Concrete class for date64 scalars.

TimestampScalar

Concrete class for timestamp scalars.

DurationScalar

Concrete class for duration scalars.

MonthDayNanoIntervalScalar

Concrete class for month, day, nanosecond interval scalars.

Decimal128Scalar

Concrete class for decimal128 scalars.

DictionaryScalar

Concrete class for dictionary-encoded scalars.

RunEndEncodedScalar

Concrete class for RunEndEncoded scalars.

ListScalar

Concrete class for list-like scalars.

LargeListScalar

ListViewScalar

LargeListViewScalar

MapScalar

Concrete class for map scalars.

StructScalar

Concrete class for struct scalars.

UnionScalar

Concrete class for Union scalars.

ExtensionScalar

Concrete class for Extension scalars.