code: def to_pandas(self, columns=None):
          # pylint: disable=import-error
          
          import pandas
          return pandas.DataFrame.from_records(self.to_list(), columns=columns)
docs: Converts sequence to a pandas DataFrame using pandas.DataFrame.from_records
  
          :param columns: columns for pandas to use
          :return: DataFrame of sequence