code: def write_dataframe(rows, encoding=ENCODING, dialect=DIALECT, **kwargs):
      
      global pandas
      if pandas is None:  # pragma: no cover
          import pandas
      with contextlib.closing(CsvBuffer()) as fd:
          write_csv(fd, rows, encoding, dialect)
          fd.seek(0)
          df = read_csv(pandas, fd, encoding, dialect, kwargs)
      return df
docs: Dump ``rows`` to string buffer and load with ``pandas.read_csv()`` using ``kwargs``.