I am going to convert Python pandas dataframe to dataframe in R. I found out few libraries for this problem
http://pandas.pydata.org/pandas-docs/stable/r_interface.html
which is rpy2
But I couldn't find the methods for saving or transfer it to R.
Firstly I tried "to_csv"
df_R = com.convert_to_r_dataframe(df_total)
df_R.to_csv(direc+"/qap/detail_summary_R/"+"distance_"+str(gp_num)+".csv",sep = ",")
But it gives me an error
"AttributeError: 'DataFrame' object has no attribute 'to_csv' "
So I tried to see its data type it was
<class 'rpy2.robjects.vectors.DataFrame'>
how could I save this type object to csv file or transfer to R?