Trait polars::chunked_array::object::ChunkApplyKernel [−][src]
pub trait ChunkApplyKernel<A> where
A: Array, {
fn apply_kernel<F>(&self, f: F) -> Self
where
F: Fn(&A) -> Arc<dyn Array + 'static>;
fn apply_kernel_cast<F, S>(&self, f: F) -> ChunkedArray<S>
where
F: Fn(&A) -> Arc<dyn Array + 'static>,
S: PolarsDataType;
}
Expand description
Apply kernels on the arrow array chunks in a ChunkedArray.
Required methods
fn apply_kernel<F>(&self, f: F) -> Self where
F: Fn(&A) -> Arc<dyn Array + 'static>,
fn apply_kernel<F>(&self, f: F) -> Self where
F: Fn(&A) -> Arc<dyn Array + 'static>,
Apply kernel and return result as a new ChunkedArray.
fn apply_kernel_cast<F, S>(&self, f: F) -> ChunkedArray<S> where
F: Fn(&A) -> Arc<dyn Array + 'static>,
S: PolarsDataType,
fn apply_kernel_cast<F, S>(&self, f: F) -> ChunkedArray<S> where
F: Fn(&A) -> Arc<dyn Array + 'static>,
S: PolarsDataType,
Apply a kernel that outputs an array of different type.