rmnskb commented on code in PR #48085: URL: https://github.com/apache/arrow/pull/48085#discussion_r2600281175
########## docs/source/python/compute.rst: ########## @@ -528,3 +528,56 @@ For example, the "numpy_gcd" function that we've been using as an example above function to use in a projection. A "cumulative sum" function would not be a valid function since the result of each input row depends on the rows that came before. A "drop nulls" function would also be invalid because it doesn't emit a value for some rows. + + +Standard Python Operators +========================= + +PyArrow supports standard Python operators for element-wise operations for arrays and scalars. +Currently, the support is limited to some of the standard arithmetic compute functions, namely +``pc.add, pc.subtract, pc.divide, pc.multiply, pc.abs, pc.negate, pc.power``; + +bit-wise functions: ``pc.bit_wise_and, bit_wise_or, bit_wise_xor, shift_left, shift_right``; + +and rounding functions: ``pc.round, pc.trunc, pc.floor, pc.ceil``. Review Comment: Fair enough, I've updated the list as you suggested :) -- 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]
