[Pandas-dev] Question

Joris Van den Bossche jorisvandenbossche at gmail.com
Wed May 31 18:05:54 EDT 2017


Can you give an actual small reproducible code example that shows the
problem?
Otherwise it will be difficult to help.

Joris

2017-05-22 11:11 GMT+02:00 Rémi DENISE <remi.denise at pasteur.fr>:

> To whom it may concern,
>
> I wanted to say that I really like pandas, it is the best for what I’m
> doing.
>
> For one of my script I had to use rpy2 and that create a matrix but I
> needed to have this matrix to pandas so I use "import pandas.rpy.common as
> com" and a message came :
>
> FutureWarning: The pandas.rpy module is deprecated and will be removed in a future version. We refer to external packages like rpy2.
> See here for a guide on how to port your code to rpy2: http://pandas.pydata.org/pandas-docs/stable/r_interface.html
>   import pandas.rpy.common as com
>
> So I check how to port my code to rpy2 instead of use it.
>
> But when I compare the two methods, it’s not the same. In rpy2 the method
> return me a numpy array, but your method return me a pandas DataFrame which
> have the name of the rows and columns as I want.
>
> So my question is how can I have exactly the same result as
> "com.convert_robj" with rpy2 because it’s not the same now and I want that
> pandas keep this method that does easily what I want and rpy2 doesn’t.
>
>
> Thank you for your answer
>
> Rémi
>
>
> _______________________________________________
> Pandas-dev mailing list
> Pandas-dev at python.org
> https://mail.python.org/mailman/listinfo/pandas-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pandas-dev/attachments/20170601/81d2f23b/attachment.html>


More information about the Pandas-dev mailing list