You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (JIRA)" <ji...@apache.org> on 2019/02/06 04:18:00 UTC

[jira] [Closed] (ARROW-1925) [Python] Wrapping PyArrow Table with Numpy without copy

     [ https://issues.apache.org/jira/browse/ARROW-1925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wes McKinney closed ARROW-1925.
-------------------------------
    Resolution: Not A Problem

As far as I know we have taken advantage of all opportunities to do zero copy where there are no nulls and the Arrow memory format is compatible with NumPy

> [Python] Wrapping PyArrow Table with Numpy without copy
> -------------------------------------------------------
>
>                 Key: ARROW-1925
>                 URL: https://issues.apache.org/jira/browse/ARROW-1925
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: Python
>    Affects Versions: 0.7.1
>            Reporter: Young-Jun Ko
>            Priority: Minor
>              Labels: parquet
>
> The scenario is the following:
> I have a parquet file, which has a column containing a float array of constant size.
> So it can be thought of as a matrix.
> When I read the parquet file, the way I currently access it, is to convert it to pandas, extract the values, giving me a list of np.array and then doing np.vstack to get the matrix.
> This involves a copy that would be nice to avoid.
> When a parquet file (or more generally a parquet dataset) is read, would the values of the array column be contiguous in memory, so that a view on the data could be created without having to copy? That would be neat.
> Thanks!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)