pub fn is_finite<T>(arr: &PrimitiveArray<T>) -> ArrayRefwhere
    T: NativeType + Float,