I am new to python and learning pandas. I want to convert the pandas "datframe" data frame to an R-style data frame (to use rpy2 later). There are two lines in my code for this:
import pandas.rpy.common as com
r_dataframe = com.convert_to_r_dataframe(datframe)
The first command passes, but then I get the following error:
Traceback (most recent call last):
File "", line 1, in
r_dataframe = com.convert_to_r_dataframe (datframe)
AttributeError: 'module' object has no attribute 'convert_to_r_dataframe' "
I am not sure why this is happening and how to fix it. Earlier in the code I have import pandas as pd. Could this be a problem?
I am using python 2.7.3, rpy2-2.3.2 and 2.15.3