[Numpy-discussion] Recarray and shared datas

Michael Sorich michael.sorich at gmail.com
Mon Apr 10 16:45:07 CDT 2006

On 4/6/06, Benjamin Thyreau <benjamin at decideur.info> wrote:
> Hi,
> Numpy has a nice feature of recarray, ie. record which can hold columns
> names.
> I'd like to use such a feature in order to better interact with R, ie.
> passing
> R datas to python without copy. The current rpy bindings do a full copy,
> and
> convert to simple ndarray. Looking at the recarray api in the Guide,
> and also at the source code, i don't find any recarray constructor which
> can
> get shared datas (all the examples from section 8.6 are doing copies).
> Is there some way to do it ? in Python or in C ? Or is there any plans to
> ?

As a current user of rpy  (at least until I can easily do the equivalent in
numpy/scipy) this sound very interesting. What will happen if the R
data.frame has NA data? I don't think the recarray can currently handle
masked data. Oh well, one step forward at a time. Good luck.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20060410/53a6309a/attachment.html 

More information about the Numpy-discussion mailing list