AlenkaF commented on issue #11799:
URL: https://github.com/apache/arrow/issues/11799#issuecomment-982486714


   In the python binding (pyarrow) the `hash_*` functions are not implemented 
to be called directly.
   
   If you use a development version of pyarrow you could do something like this:
   
   ``` python
   import pyarrow as pa
   import pyarrow.compute as pc
   
   table = pa.table([[1, 2, 3],["a", "b", "a"]], names=["values", "keys"])
   
   table.group_by("keys").aggregate([("values","hash_sum")])
   ```
   
   and you would get:
   ```
   pyarrow.Table
   values_sum: int64
   keys: string
   ----
   values_sum: [[4,2]]
   keys: [["a","b"]]
   ```


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


Reply via email to