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