polars::prelude::arity

Function unary_kernel

Source
pub fn unary_kernel<T, V, F, Arr>(
    ca: &ChunkedArray<T>,
    op: F,
) -> ChunkedArray<V>
where T: PolarsDataType, V: PolarsDataType<Array = Arr>, Arr: Array, F: FnMut(&<T as PolarsDataType>::Array) -> Arr,
Expand description

Applies a kernel that produces Array types.