I converted a pandas df to r using the below:
import pandas as pd
import pandas.rpy.common as com
import rpy2.robjects as ro
from rpy2.robjects.packages import importr
rdf = com.convert_to_r_dataframe(df)
How do I convert rdf back to a pandas df?
df = f(rdf) ?