code: def df_to_records(dframe: pd.DataFrame) -> list[dict[str, Any]]:
      """
      Convert a DataFrame to a set of records.
  
      :param dframe: the DataFrame to convert
      :returns: a list of dictionaries reflecting each single row of the DataFrame
      """
      if not dframe.columns.is_unique:
          logger.warning(
              "DataFrame columns are not unique, some columns will be omitted."
          )
      columns = dframe.columns
      return list(
          dict(zip(columns, map(_convert_big_integers, row)))
          for row in zip(*[dframe[col] for col in columns])
      )
  
imports: import logging
  from typing import Any
  import pandas
  from superset.utils.core import JS_MAX_INTEGER
label_desc: Use image node_id 2 for calling a global function with example usage: df_to_records(dframe) and returns: list