Rpy2: pandas dataframe can't fit in R
问题 I need to read a csv file with python (into a pandas dataframe), work in R and return to python. Then, to pass pandas dataframe to R dataframe I use rpy2, and work ok (code bellow). from pandas import read_csv, DataFrame import pandas.rpy.common as com import rpy2.robjects as robjects r = robjects.r r.library("fitdistrplus") df = read_csv('./datos.csv') r_df = com.convert_to_r_dataframe(df) print(type(r_df)) And this output is: <class 'rpy2.robjects.vectors.FloatVector'> But then, I try to