In data domenica 10 febbraio 2013 12:20:22, Thomas Kluyver ha scritto:
> While we're on the subject, by the way, I have a pull request open on
> IPython to improve how we handle a simple pandas DataFrame being passed
> into rmagic. I imagine this is quite a common case, and at present rmagic

Just a bit of background, since I wrote the original pandas-to-data.frame 
conversion that's used by pandas at the moment. 

The code originated by an internal app I wrote, which shuffled data back and 
forth between R and Python. At the moment, numpy2ri() wasn't quite giving the 
results I expected, and my (feeble!) attempts at trying to do that in rpy2 
failed (granted, I could have probably asked for more help here), so I built 
something "static" like the one used in pandas.

Looking at what Laurent made in rpy2, I think that way is much better than the 
one I wrote. Laurent, if you make a release containing that converter soon, 
I'll make a PR to pandas to use that code path. This will mean of course that 
newer pandas will have to require that specific version of rpy2.

-- 
Luca Beltrame, Ph.D. - Translational Genomics Unit
Oncology Department, Mario Negri Institute

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to