nirandaperera opened a new pull request #10410:
URL: https://github.com/apache/arrow/pull/10410


   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. 
   
   


-- 
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]


Reply via email to