import pandas as pd
import pandas.rpy.common as com
import rpy2.robjects as ro
r = ro.r
r('library(reshape)')
df = com.convert_robj(r('melt(Titanic)'))
print(df.head())
Загрузите многомерный набор данных R в Pandas DataFrame