nirandaperera opened a new pull request #10377:
URL: https://github.com/apache/arrow/pull/10377
Adding a preliminary impl for an `if_else(cond: Datum, left: Datum, right:
Datum)` function. It works as follows,
```python
def if_else(cond, left, right):
for c, true_val, false_val in zip(cond, left, right):
if c:
yield true_val
else:
yield false_val
```
`null` values will be promoted to the output.
Current commit only provides only Array-Array-Array kernels for the
function.
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]