lidavidm commented on code in PR #12460:
URL: https://github.com/apache/arrow/pull/12460#discussion_r846079214


##########
docs/source/python/api/compute.rst:
##########
@@ -45,6 +45,21 @@ Aggregations
    tdigest
    variance
 
+Cumulative Functions
+--------------------
+
+Cumulative functions are vector functions that perform a running total on its
+input and outputs an array containing the corresponding intermediate running 
values.

Review Comment:
   I'm still a little confused about this, actually, and the example above 
leaves me more confused. Here's what it currently does:
   
   ```python
   >>> import pyarrow.compute as pc
   >>> pc.cumulative_sum([1, 2, 3, 4])
   <pyarrow.lib.Int64Array object at 0x7f586b71d100>
   [
     1,
     3,
     6,
     10
   ]
   ```
   
   Is this what's expected?



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