[Numpy-discussion] Recarray and shared datas
michael.sorich at gmail.com
Mon Apr 10 16:45:07 CDT 2006
On 4/6/06, Benjamin Thyreau <benjamin at decideur.info> wrote:
> Numpy has a nice feature of recarray, ie. record which can hold columns
> I'd like to use such a feature in order to better interact with R, ie.
> R datas to python without copy. The current rpy bindings do a full copy,
> 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
> 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...
More information about the Numpy-discussion