code: def from_df_cols(self, df, col_names, strict=True):
      # find column by alias
      alias_idx = {}
      for col in col_names.values():
          if col.alias is not None:
              alias_idx[col.alias] = col
  
      resp_dict = df.to_dict(orient="split")
  
      self._records = resp_dict["data"]
  
      for col in resp_dict["columns"]:
          if col in col_names or strict:
              column = col_names[col]
          elif col in alias_idx:
              column = alias_idx[col]
          else:
              column = Column(col)
          self._columns.append(column)
      return self
  
imports: import copy
  import pandas
  from mindsdb.api.executor.exceptions import WrongArgumentError
label_desc: Use image node_id 4 for calling the ResultSet obj's underlying member method code with example usage: obj.from_df_cols(df, col_names, strict) and returns: self