From user-return-388-archive-asf-public=cust-asf.ponee.io@arrow.apache.org Sat Apr 18 17:34:31 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 32928180663 for ; Sat, 18 Apr 2020 19:34:31 +0200 (CEST) Received: (qmail 27113 invoked by uid 500); 18 Apr 2020 17:34:30 -0000 Mailing-List: contact user-help@arrow.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@arrow.apache.org Delivered-To: mailing list user@arrow.apache.org Received: (qmail 27103 invoked by uid 99); 18 Apr 2020 17:34:30 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Apr 2020 17:34:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id D146A1A417F for ; Sat, 18 Apr 2020 17:34:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-he-de.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id RkPrXWBalYp6 for ; Sat, 18 Apr 2020 17:34:28 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::141; helo=mail-il1-x141.google.com; envelope-from=wesmckinn@gmail.com; receiver= Received: from mail-il1-x141.google.com (mail-il1-x141.google.com [IPv6:2607:f8b0:4864:20::141]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id D491E7FB42 for ; Sat, 18 Apr 2020 17:34:27 +0000 (UTC) Received: by mail-il1-x141.google.com with SMTP id q10so4129050ile.0 for ; Sat, 18 Apr 2020 10:34:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=nRFpQ2QQJ+ub7FYHF79HO3pyb0i6dZLFT7bRK+TQ4mc=; b=WfMuwoM3vakZWPABuYQJO8HuKieRfLxgWHxLy23AO/om11KKy6Pr7V+mD3XK+uESX0 IiIm/YmfsMOCs4Tjc8MG8wzAxAM+GwVVkO5Y5iaRKmUo5RQAJgMhLouOgH6rrBchmG02 M1XliXchFHBbsX3vT/BGAs3zg4CNqBG9IJTBHmrf2RV0G54pW8YGfW1ZpEpvqd7qfFzi OJ5pes5WKoD4ryzoZlcaCEVtg9eDvZyDY4usYz+bh8bwRDix6r6ihJhWoyaMO6P2uIjX IIayTdOMR3fxcgPxZq6IPqu1ezoGe4nZ8G/huqmDN/93H39xhxuI9ZOP8+KHFRiOuL8/ G9eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=nRFpQ2QQJ+ub7FYHF79HO3pyb0i6dZLFT7bRK+TQ4mc=; b=VyaoXLeJ2YEXh0v6+FzZz6vawW96JmUZzmaJiT+VL+6j0y88vtYzKFmx/K95blj3tB FtHZT8J1A4ll1znU9fYI135zRpKa2UC05JWXt/6R8WFDIfIiWDp8E0etoNceradd++pB X/Cym/TUwoCnFE3UA22YULM3WnC7JBYCI87MLFJtU6g9tnQ91yAOwOT+dNpa5HXQQsvg V7iyrRSOA/C1123TKy7BUfNGGmfh56yVacNZPS0FHpbFlYoS55HTLOv7PKaoql9kX3sf Nu0XZzWupaUM8rWZQ/9n5Iud+60Mk6MdYir1qtOATNLHsv4+P2FK7sM2Kqml8GOCY2F6 Qg1A== X-Gm-Message-State: AGi0PuZa7NcDsLj9FKbPXw+69MpVKu4JjIPR1Q8+VtO+3WM9r5zCXQQ+ v/xi2K6on3j9Ph+Z55A+Qs2ADcLhXVOzksOs4hQ3H7sP X-Google-Smtp-Source: APiQypLxPgIbPSopC6J5AiVZZ4bI+61b4/s5CR8lBWq9T9sY0QxSQFaHHvEu1sQ8tRee4MPd9fpnrrSFZRTiuOI8JoU= X-Received: by 2002:a92:d11:: with SMTP id 17mr8801091iln.145.1587231266301; Sat, 18 Apr 2020 10:34:26 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Wes McKinney Date: Sat, 18 Apr 2020 12:34:15 -0500 Message-ID: Subject: Re: Passing data from C++ to Python To: user@arrow.apache.org Content-Type: multipart/alternative; boundary="000000000000cdecea05a394132f" --000000000000cdecea05a394132f Content-Type: text/plain; charset="UTF-8" This is the relevant page in the documentation http://arrow.apache.org/docs/python/extending.html On Sat, Apr 18, 2020, 12:30 PM Wes McKinney wrote: > Hi Marc, > > This is exactly what turbodbc does (in pybind11) -- pyarrow has a C API to > construct its data structures from C++ objects. Look for usages of the > pyarrow_wrap_* functions. > > Wes > > > On Sat, Apr 18, 2020, 12:22 PM Marc Allen wrote: > >> Hi all, >> >> I am new to Arrow, and evaluating it for use in a library that I am >> building. This library will mainly used via Python bindings (I am currently >> using pybind11) around a C++ codebase. I would like to compose Arrow data >> structures in C++ and return them back to Python through function calls, >> ultimately resulting in a pandas dataframe. Ideally, I would not have to >> use Plasma or IPC for this. >> >> Is this a supported use model, and is there an example anywhere I could >> build from? I have been reading the docs but it's not clear to me how I >> would get started. Apologies if it's in there and I missed it. >> >> Thanks, >> >> -Marc >> > --000000000000cdecea05a394132f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This is the relevant page in the documentation=C2=A0


On Sat, Apr 18, 2020, 12:30 PM Wes McKinney <wesmckinn@gmail.com> wrote:
Hi Marc,

This is exactly what turbodbc does (in pybind1= 1) -- pyarrow has a C API to construct its data structures from C++ objects= . Look for usages of the pyarrow_wrap_* functions.=C2=A0

Wes


On Sa= t, Apr 18, 2020, 12:22 PM Marc Allen <allen.marc@gmail.com> wro= te:
Hi all,
I am new to Arrow, and evaluating it=C2=A0for use in a library= that I am building. This library will mainly used via Python bindings (I a= m currently using pybind11) around a C++ codebase. I would like to compose = Arrow data structures in C++ and return them back to Python through functio= n calls, ultimately resulting in a pandas dataframe. Ideally, I would not h= ave to use Plasma or IPC for this.

Is this a suppo= rted use model, and is there an example anywhere I could build from? I have= been reading the docs but it's not clear to me how I would get started= . Apologies if it's in there and I missed it.

= Thanks,

-Marc
--000000000000cdecea05a394132f--