pitrou commented on pull request #11624:
URL: https://github.com/apache/arrow/pull/11624#issuecomment-967258376


   Another possibility is to have a two_step API, e.g. replace:
   ```python
   table.group_by("keys", ["values"], "sum")
   ```
   with:
   ```python
   table.group_by("keys", ["values"]).aggregate("sum")
   ```
   or perhaps even some shortcuts:
   ```python
   table.group_by("keys", ["values"]).sum()
   ```
   
   `Table.group_by` would return an intermediate object with several methods, 
including one for doing the actual grouping ("collect"?) and other(s) to 
compute aggregates.


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