Closed juanramonua closed 5 months ago
Duplicate of #1074
I have tried to follow the discussions in indicator #1074 and its other threads but there is no example of how to use it correctly, e.g. in Colab. There are only references to instructions to use a special -c parameter and the use of converters. In previous versions the usual data types (int, float, string) of a DataFrame of Pandas were automatically converted. I would like if possible to know how to modify the code I attached in the first post to make it work.
Best regards and thanks.
The error simply occurs when passing a
Pandas
variable from Python to R as a parameter into armagic
command. I have tried different versions of bothrpy2
(3.4.x and 3.5.x), Pandas (1.x and 2.x).What seems to work is the combination of
rpy2
with older versions ofPandas
1.x but the modern 2.x which is already required in some data analysis packages and will be the standard in the future, does not work.Code in Colab (Jupyter notebook)
Cell 1:
Cell1 2:
Cell 3:
Expected behavior Conversion of dataframe variable from Python to R.
Error