Data Types and Schemas¶
Factory Functions¶
These should be used to create Arrow data types and schemas.
|
Create instance of null type. |
|
Create instance of boolean type. |
|
Create instance of signed int8 type. |
|
Create instance of signed int16 type. |
|
Create instance of signed int32 type. |
|
Create instance of signed int64 type. |
|
Create instance of unsigned int8 type. |
|
Create instance of unsigned uint16 type. |
|
Create instance of unsigned uint32 type. |
|
Create instance of unsigned uint64 type. |
|
Create half-precision floating point type. |
|
Create single-precision floating point type. |
|
Create double-precision floating point type. |
|
Create instance of 32-bit time (time of day) type with unit resolution. |
|
Create instance of 64-bit time (time of day) type with unit resolution. |
|
Create instance of timestamp type with resolution and optional time zone. |
|
Create instance of 32-bit date (days since UNIX epoch 1970-01-01). |
|
Create instance of 64-bit date (milliseconds since UNIX epoch 1970-01-01). |
|
Create instance of a duration type with unit resolution. |
Create instance of an interval type representing months, days and nanoseconds between two dates. |
|
|
Create variable-length binary type. |
|
Create UTF8 variable-length string type. |
|
Alias for string(). |
Create large variable-length binary type. |
|
Create large UTF8 variable-length string type. |
|
Alias for large_string(). |
|
|
Create decimal type with precision and scale and 128-bit width. |
|
Create ListType instance from child data type or field. |
|
Create LargeListType instance from child data type or field. |
|
Create MapType instance from key and item data types or fields. |
|
Create StructType instance from fields. |
|
Dictionary (categorical, or simply encoded) type. |
|
Create a pyarrow.Field instance. |
|
Construct pyarrow.Schema from collection of fields. |
|
Convert NumPy dtype to pyarrow.DataType. |
Utility Functions¶
|
Unify schemas by merging fields by name. |
Type Classes¶
Do not instantiate these classes directly. Instead, call one of the factory functions above.
|
Base class of all Arrow data types. |
Concrete class for dictionary data types. |
|
Concrete class for list data types. |
|
Concrete class for map data types. |
|
Concrete class for struct data types. |
|
Base class for union data types. |
|
Concrete class for timestamp data types. |
|
Concrete class for time32 data types. |
|
Concrete class for time64 data types. |
|
Concrete class for fixed-size binary data types. |
|
Concrete class for decimal128 data types. |
|
|
A named field, with a data type, nullability, and optional metadata. |
|
A named collection of types a.k.a schema. |
Specific classes and functions for extension types.
|
Concrete base class for Python-defined extension types. |
|
Concrete base class for Python-defined extension types based on pickle for (de)serialization. |
|
Register a Python extension type. |
|
Unregister a Python extension type. |
Type Checking¶
These functions are predicates to check whether a DataType
instance
represents a given data type (such as int32
) or general category
(such as “is a signed integer”).
|
Return True if value is an instance of a boolean type. |
|
Return True if value is an instance of any integer type. |
Return True if value is an instance of any signed integer type. |
|
Return True if value is an instance of any unsigned integer type. |
|
|
Return True if value is an instance of an int8 type. |
|
Return True if value is an instance of an int16 type. |
|
Return True if value is an instance of an int32 type. |
|
Return True if value is an instance of an int64 type. |
|
Return True if value is an instance of an uint8 type. |
|
Return True if value is an instance of an uint16 type. |
|
Return True if value is an instance of an uint32 type. |
|
Return True if value is an instance of an uint64 type. |
|
Return True if value is an instance of a floating point numeric type. |
|
Return True if value is an instance of a float16 (half-precision) type. |
|
Return True if value is an instance of a float32 (single precision) type. |
|
Return True if value is an instance of a float64 (double precision) type. |
|
Return True if value is an instance of a decimal type. |
|
Return True if value is an instance of a list type. |
Return True if value is an instance of a large list type. |
|
|
Return True if value is an instance of a struct type. |
|
Return True if value is an instance of a union type. |
|
Return True if value is an instance of a nested type. |
|
Return True if value is an instance of date, time, timestamp or duration. |
|
Return True if value is an instance of a timestamp type. |
|
Return True if value is an instance of a date type. |
|
Return True if value is an instance of a date32 (days) type. |
|
Return True if value is an instance of a date64 (milliseconds) type. |
|
Return True if value is an instance of a time type. |
|
Return True if value is an instance of a time32 type. |
|
Return True if value is an instance of a time64 type. |
|
Return True if value is an instance of a null type. |
|
Return True if value is an instance of a variable-length binary type. |
|
Alias for is_string. |
|
Return True if value is an instance of string (utf8 unicode) type. |
Return True if value is an instance of a large variable-length binary type. |
|
Alias for is_large_string. |
|
Return True if value is an instance of large string (utf8 unicode) type. |
|
Return True if value is an instance of a fixed size binary type. |
|
|
Return True if value is an instance of a map logical type. |
Return True if value is an instance of a dictionary-encoded type. |