code: def to_df_cols(self, prefix=""):
      # returns dataframe and dict of columns
      #   can be restored to ResultSet by from_df_cols method
  
      columns = []
      col_names = {}
      for col in self._columns:
          name = col.get_hash_name(prefix)
          columns.append(name)
          col_names[name] = col
  
      return pd.DataFrame(self._records, columns=columns), col_names
  
imports: import copy
  import pandas
  from mindsdb.api.executor.exceptions import WrongArgumentError
label_desc: Use image node_id 6 for calling the ResultSet obj's underlying member method code with example usage: obj.to_df_cols(prefix) and returns: pd,  col_names