-
-
Notifications
You must be signed in to change notification settings - Fork 18k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed ri2py conversion of Vectors.ListVector object to Python dictionary #13018
Comments
rpy2 is supported directly http://rpy.sourceforge.net/rpy2/doc-2.5/html/overview.html not in pandas any longer |
Interestingly the pandas 0.18 rpy2 page pointed me here to report Issues. See link in second Warning box. Please have the Pandas team update page accordingly. |
you can do a PR if you want |
Forgive me - please advise what "PR" means and how to do it on GitHub. |
http://pandas.pydata.org/pandas-docs/stable/contributing.html you might be able to submit this directly using github as this is just a doc-change. |
FWIW rpy2's doc has moved to readthedoc some time ago: http://rpy2.readthedocs.io/ |
Thanks @lgautier. The pandas team may want to add the link to their rpy2 page. |
thanks @lgautier updated for 0.18.1 release (soon) |
R's I'd prefer to leave the conversion explicit (the user writes it in the his or her code and decides what to do if duplicates). I can provide a function that does it but throws an exception if duplicated. |
Current conversion of R objects into Python usng
pandas2ri.ri2py
does not work for the<class 'rpy2.robjects.vectors.ListVector'>
object. As noted here,pandas2ri.py2ri()
andpandas2ri.ri2py()
are current methods to handle conversion. However, previous deprecatedcom.convert_robj()
correctly converts the R object to Python dictionary:The text was updated successfully, but these errors were encountered: