import rpy2.robjects as ro
import pandas as pd
import pandas.rpy.common as com
ro.r.source('C:\\Path\\To\\R script.R')
pydf = com.load_data('rdf')
cols = pydf[[1, 3, 5]]
how to select columns from R dataframe in rpy2 in python?