code: def from_df(self, df, database, table_name, table_alias=None):
      resp_dict = df.to_dict(orient="split")
  
      self._records = resp_dict["data"]
  
      for col in resp_dict["columns"]:
          self._columns.append(
              Column(
                  name=col,
                  table_name=table_name,
                  table_alias=table_alias,
                  database=database,
                  type=df.dtypes[col],
              )
          )
      return self
  
imports: import copy
  import pandas
  from mindsdb.api.executor.exceptions import WrongArgumentError
label_desc: Use image node_id 3 for calling the ResultSet obj's underlying member method code with example usage: obj.from_df(df, database, table_name, table_alias) and returns: self