polars.Array#
- class polars.Array(*args: Any, **kwargs: Any)[source]#
Fixed length list type.
- __init__( )[source]#
Fixed length list type.
- Parameters:
- width
The length of the arrays.
- inner
The
DataTypeof the values within each array.
Examples
>>> s = pl.Series( ... "a", [[1, 2], [4, 3]], dtype=pl.Array(inner=pl.Int64, width=2) ... ) >>> s shape: (2,) Series: 'a' [array[i64, 2]] [ [1, 2] [4, 3] ]
Methods
__init__(*args[, inner, width])Fixed length list type.
base_type()Return this DataType's fundamental/root type class.
is_(other)Check if this DataType is the same as another DataType.
is_float()Check whether the data type is a temporal type.
is_integer()Check whether the data type is an integer type.
is_not(other)Check if this DataType is NOT the same as another DataType.
is_numeric()Check whether the data type is a numeric type.
is_signed_integer()Check whether the data type is a signed integer type.
is_temporal()Check whether the data type is a temporal type.
is_unsigned_integer()Check whether the data type is an unsigned integer type.
Attributes
inneris_nestedwidth