Hi there,

Hope you're well.

I have a question about the 
arrow<https://docs.rs/arrow/latest/arrow/index.html>::compute<https://docs.rs/arrow/latest/arrow/compute/index.html>::kernels<https://docs.rs/arrow/latest/arrow/compute/kernels/index.html>::filter<https://docs.rs/arrow/latest/arrow/compute/kernels/filter/fn.filter.html#>::filter<https://docs.rs/arrow/latest/arrow/compute/kernels/filter/index.html>()
 function. The function takes a predicate which is a BooleanArray to do the 
filtering. How should this be used in practice? One usually doesn't know which 
item should be filtered out or not in advance before you actually do the 
filter, so won't know what the BooleanArray should contain.

I would have thought that the predicate would be a function instead to test if 
each item should be filtered out or not.

How is 
arrow<https://docs.rs/arrow/latest/arrow/index.html>::compute<https://docs.rs/arrow/latest/arrow/compute/index.html>::kernels<https://docs.rs/arrow/latest/arrow/compute/kernels/index.html>::filter<https://docs.rs/arrow/latest/arrow/compute/kernels/filter/fn.filter.html#>::filter()
 meant to be used in practice?

Thanks.

Reply via email to