[ 
https://issues.apache.org/jira/browse/ARROW-11871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17297355#comment-17297355
 ] 

Joris Van den Bossche commented on ARROW-11871:
-----------------------------------------------

Adding a power kernel would indeed be nice. 

One behavioural aspect that has come up in pandas is the question about what to 
do with nulls in case of {{power(null, 0)}} or {{power(1, null}}: propagate the 
null value (as is otherwise always done for element-wise arithmetic 
operations), or in this case return an actual result (1 in both cases). 
Reference to the pandas issue: https://github.com/pandas-dev/pandas/issues/29997

> [C++] Add element-wise power() compute function
> -----------------------------------------------
>
>                 Key: ARROW-11871
>                 URL: https://issues.apache.org/jira/browse/ARROW-11871
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>    Affects Versions: 3.0.0
>            Reporter: ARF
>            Priority: Minor
>
> It would be nice to have an element-wise {{power()}} compute function.
> I.e. in analogy to 
> [numpy.power()|https://numpy.org/doc/stable/reference/generated/numpy.power.html].



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to