You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Ben Kietzman (Jira)" <ji...@apache.org> on 2021/06/04 01:14:00 UTC
[jira] [Commented] (ARROW-12813) [C++] Expose a `full` (array
creation) capability to python/R
[ https://issues.apache.org/jira/browse/ARROW-12813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17356994#comment-17356994 ]
Ben Kietzman commented on ARROW-12813:
--------------------------------------
Isn't this just MakeArrayFromScalar?
> [C++] Expose a `full` (array creation) capability to python/R
> -------------------------------------------------------------
>
> Key: ARROW-12813
> URL: https://issues.apache.org/jira/browse/ARROW-12813
> Project: Apache Arrow
> Issue Type: Improvement
> Components: C++
> Reporter: Weston Pace
> Priority: Major
>
> Given a scalar value and a length return an array where all values are equal to the scalar value.
> The name "full" is derived from [https://numpy.org/doc/stable/reference/generated/numpy.full.html] but if anyone has a more clever name please recommend it.
> There are a number of utility functions in C++ that do this already. However, exposing this as a compute function would allow R/Python to easily generate arrays.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)