polars_arrow::compute::cast

Function primitive_to_primitive

Source
pub fn primitive_to_primitive<I, O>(
    from: &PrimitiveArray<I>,
    to_type: &ArrowDataType,
) -> PrimitiveArray<O>
Available on crate feature compute_cast only.
Expand description

Cast PrimitiveArray to a PrimitiveArray of another physical type via numeric conversion.