class_docstr: Extend the report to be able to dump and load reports.
class_docstr_tok: ["Extend","the","report","to","be","able","to","dump","and","load","reports","."]
docstr: Serialize ProfileReport and return bytes for reproducing ProfileReport or Caching.
  
  Returns:
      Bytes which contains hash of DataFrame, config, _description_set and _report
docstr_tok: ["Serialize","ProfileReport","and","return","bytes","for","reproducing","ProfileReport","or","Caching",".","Returns",":","Bytes","which","contains","hash","of","DataFrame",",","config",",","_description_set","and","_report"]
code: def dumps(self) -> bytes:
      """
      Serialize ProfileReport and return bytes for reproducing ProfileReport or Caching.
  
      Returns:
          Bytes which contains hash of DataFrame, config, _description_set and _report
      """
      import pickle
  
      # Note: _description_set and _report may are None if they haven't been computed
      return pickle.dumps(
          [
              self.df_hash,
              self.config,
              self._description_set,
              self._report,
          ]
      )
  
file_path: ydata-profiling/src/ydata_profiling/serialize_report.py
imports: import warnings
  from pathlib import Path
  from typing import TYPE_CHECKING, Optional, Union
  from ydata_profiling.config import Settings
  from ydata_profiling.model import BaseDescription
  from ydata_profiling.report.presentation.core import Root
  from ydata_profiling.version import __version__
label_desc: Use image node_id 2 for calling the SerializeReport obj's underlying member method code with example usage: obj.dumps() and returns: pickle