code: def sav_to_pandas_rpy2(input_file):
      
      import pandas.rpy.common as com
  
      w = com.robj.r('foreign::read.spss("%s", to.data.frame=TRUE)' % input_file)
      return com.convert_robj(w)
docs: SPSS .sav files to Pandas DataFrame through Rpy2
  
      :param input_file: string
  
      :return: