[ 
https://issues.apache.org/jira/browse/ARROW-11368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17274108#comment-17274108
 ] 

Yibo Cai commented on ARROW-11368:
----------------------------------

It does makes python code more user friendly, but it also leads to harder to 
use c++ interface.
I would like to cancel this request as won't do.
That said, I did implemented according patch, uploaded here in case one day I 
changed mind.
 [^return-scalar.patch] 

> [C++][Compute] Return scalar if only one mode or quantile is required
> ---------------------------------------------------------------------
>
>                 Key: ARROW-11368
>                 URL: https://issues.apache.org/jira/browse/ARROW-11368
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>            Reporter: Yibo Cai
>            Assignee: Yibo Cai
>            Priority: Major
>         Attachments: return-scalar.patch
>
>
> Mode and quantile kernels support returning multiple values and always return 
> array to hold multiple values. If only one value is required, an array of 
> size 1 is returned. It's better to return a scalar instead in this case.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to