polars_core::utils

Function align_chunks_binary

Source
pub fn align_chunks_binary<'a, T, B>(
    left: &'a ChunkedArray<T>,
    right: &'a ChunkedArray<B>,
) -> (Cow<'a, ChunkedArray<T>>, Cow<'a, ChunkedArray<B>>)
Expand description

Ensure the chunks in both ChunkedArrays have the same length.

ยงPanics

This will panic if left.len() != right.len() and array is chunked.