kylebarron opened a new issue, #34433: URL: https://github.com/apache/arrow/issues/34433
### Describe the usage question you have. Please include as many useful details as possible. I'm unsure whether this should be categorized as "usage" or "enhancement". I've read through the [high-level compute functions doc](https://arrow.apache.org/docs/python/compute.html), as well as the [compute API doc page](https://arrow.apache.org/docs/python/api/compute.html), and also looked through `compute.py` and `_compute.pyx`. Is there a pyarrow compute API for evaluating an expression against a table or array, receiving _indices_ as output? All the docs seem to use `table.filter`, whereas I'm looking for something like [`numpy.where`](https://numpy.org/doc/stable/reference/generated/numpy.where.html), where I can use `where` and then `table.take` in two different steps instead of one. Presumably `filter` is already doing a "where" then "take" under the hood? ```py import pyarrow.compute as pc import pyarrow as pa table = pa.Table.from_arrays([pa.array([1, 2, 3, 4])], names=["a"]) expr = pc.field('a') == 2 # does this exist? table.evaluate(expr) # Expected output BooleanArray: # pa.array([False, True, False, False]) ``` ### Component(s) Python -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
