code: def to_df(self):
      columns = self.get_column_names()
      return pd.DataFrame(self._records, columns=columns)
  
imports: import copy
  import pandas
  from mindsdb.api.executor.exceptions import WrongArgumentError
label_desc: Use image node_id 5 for calling the ResultSet obj's underlying member method code with example usage: obj.to_df() and returns: pd