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: Load ProfileReport from file
  
  Raises:
       ValueError: if the DataFrame or Config do not match with the current ProfileReport
docstr_tok: ["Load","ProfileReport","from","file","Raises",":","ValueError",":","if","the","DataFrame","or","Config","do","not","match","with","the","current","ProfileReport"]
code: def load(
      self, load_file: Union[Path, str]
  ) -> Union["ProfileReport", "SerializeReport"]:
      """
      Load ProfileReport from file
  
      Raises:
           ValueError: if the DataFrame or Config do not match with the current ProfileReport
      """
      if not isinstance(load_file, Path):
          load_file = Path(str(load_file))
  
      self.loads(load_file.read_bytes())
      return self
  
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 5 for calling the SerializeReport obj's underlying member method code with example usage: obj.load(load_file) and returns: self