Module polars_arrow::compute
source · Expand description
contains a wide range of compute operations (e.g.
[arithmetics
], aggregate
,
[filter
], [comparison
], and [sort
])
This module’s general design is
that each operator has two interfaces, a statically-typed version and a dynamically-typed
version.
The statically-typed version expects concrete arrays (such as PrimitiveArray
);
the dynamically-typed version expects &dyn Array
and errors if the type is not
supported.
Some dynamically-typed operators have an auxiliary function, can_*
, that returns
true if the operator can be applied to the particular DataType
.
Modules§
- aggregate
compute_aggregate
Contains different aggregation functions - Defines kernels suitable to perform operations to primitive arrays.
- Defines generics suitable to perform operations to
PrimitiveArray
in-place. - bitwise
compute_bitwise
- boolean
compute_boolean
- boolean_kleene
compute_boolean_kleene
Boolean operators of Kleene logic. - cast
compute_cast
Defines different casting operators such ascast
or [primitive_to_binary
]. - Example:
- take
compute_take
Defines take kernel forArray
- temporal
compute_temporal
Defines temporal kernels for time and date related functions.