Arrays and Scalars¶
Factory Function¶
This function is the main entry point to create an Arrow array from Python.
array (obj[, type, mask, size]) |
Create pyarrow.Array instance from a Python object |
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. |
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. |
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. |
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. |
StructArray |
Concrete class for Arrow arrays of a struct data type. |
UnionArray |
Concrete class for Arrow arrays of a Union data type. |
Array Scalars¶
Indexing an array wraps the represented value in a scalar object whose concrete type depends on the array data type. You shouldn’t instantiate any of those classes directly.
NA |
Singleton for null array elements. |
Scalar |
The base class for all array elements. |
ArrayValue () |
The base class for non-null array elements. |
BooleanValue |
Concrete class for boolean array elements. |
Int8Value |
Concrete class for int8 array elements. |
Int16Value |
Concrete class for int16 array elements. |
Int32Value |
Concrete class for int32 array elements. |
Int64Value |
Concrete class for int64 array elements. |
UInt8Value |
Concrete class for uint8 array elements. |
UInt16Value |
Concrete class for uint16 array elements. |
UInt32Value |
Concrete class for uint32 array elements. |
UInt64Value |
Concrete class for uint64 array elements. |
FloatValue |
Concrete class for float32 array elements. |
DoubleValue |
Concrete class for float64 array elements. |
BinaryValue |
Concrete class for variable-sized binary array elements. |
StringValue |
Concrete class for string (utf8) array elements. |
FixedSizeBinaryValue |
Concrete class for fixed-size binary array elements. |
Time32Value |
Concrete class for time32 array elements. |
Time64Value |
Concrete class for time64 array elements. |
Date32Value |
Concrete class for date32 array elements. |
Date64Value |
Concrete class for date64 array elements. |
TimestampValue |
Concrete class for timestamp array elements. |
DecimalValue |
Concrete class for decimal128 array elements. |
DictionaryValue |
Concrete class for dictionary-encoded array elements. |
ListValue |
Concrete class for list array elements. |
StructValue |
Concrete class for struct array elements. |
UnionValue |
Concrete class for union array elements. |