Loading an Rdata file into a pandas dataframe


In [ ]:
from rpy2.robjects import pandas2ri
pandas2ri.activate()

import rpy2.robjects as robjects
import pandas.rpy.common as com
print(robjects.r.load("/Users/olga/workspace-git/HSMMSingleCell/data/HSMM_expr_matrix.rda"))

trapnell2014_expression = com.load_data('HSMM_expr_matrix')
trapnell2014_expression.head()