Function arrow_arith::arithmetic::modulus_scalar
source · pub fn modulus_scalar<T>(
array: &PrimitiveArray<T>,
modulo: T::Native
) -> Result<PrimitiveArray<T>, ArrowError>where
T: ArrowNumericType,
T::Native: ArrowNativeTypeOp,
Expand description
Modulus every value in an array by a scalar. If any value in the array is null then the
result is also null. If the scalar is zero then the result of this operation will be
Err(ArrowError::DivideByZero)
.