cyb70289 commented on pull request #8920:
URL: https://github.com/apache/arrow/pull/8920#issuecomment-761972380


   Exposed QuantileOptions to Python.
   No hurry to merge.
   ```
   In [1]: import pyarrow as pa
   
   In [2]: import pyarrow.compute as pc
   
   In [3]: arr = pa.array([1,2,3,4,5,6,7])
   
   In [4]: option = pc.QuantileOptions(q=(0.1,0.3,0.5), interpolation='nearest')
   
   In [5]: pc.call_function("quantile", [arr], option)
   Out[5]: 
   <pyarrow.lib.Int64Array object at 0x7f4fc0c345e8>
   [
     2,
     3,
     4
   ]
   ```


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to