arrow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Pitrou (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARROW-596) [Python] Add convenience function to convert pandas.DataFrame to pyarrow.Buffer containing a file or stream representation
Date Mon, 13 Mar 2017 08:52:04 GMT

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

Antoine Pitrou commented on ARROW-596:
--------------------------------------

Cython allows you to implement the buffer protocol: see https://cython.readthedocs.io/en/latest/src/userguide/buffer.html
. I've never used it but it looks similar to what you would do in C.

Note that pyarrow.Buffer needs to be a fixed-size buffer for that operation to make sense.
If not, then __getbuffer__ should lock the buffer size until __releasebuffer__ is called.

> [Python] Add convenience function to convert pandas.DataFrame to pyarrow.Buffer containing
a file or stream representation
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ARROW-596
>                 URL: https://issues.apache.org/jira/browse/ARROW-596
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: Python
>            Reporter: Wes McKinney
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message