class_docstr: Class to manage the configuration of the dataframe
docstr: Checks if the dataframe name already exists
  
  Args:
      saved_dfs (List[dict]): List of saved dataframes
docstr_tok: ["Checks","if","the","dataframe","name","already","exists","Args",":","saved_dfs","(","List","[","dict","]",")",":","List","of","saved","dataframes"]
code: def _check_for_duplicates(self, saved_dfs, name: str):
      """
      Checks if the dataframe name already exists
  
      Args:
          saved_dfs (List[dict]): List of saved dataframes
      """
  
      if any(df_info["name"] == name for df_info in saved_dfs):
          raise ValueError(f"Duplicate dataframe found: {name}")
  
file_path: pandas-ai/pandasai/helpers/df_config_manager.py
imports: import json
  import os
  import hashlib
  from pandasai.helpers.path import create_directory, find_closest, find_project_root
  from .df_info import df_type
label_desc: Use image node_id 3 for calling the DfConfigManager obj's underlying member method code with example usage: obj._check_for_duplicates(saved_dfs, name) without return types