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