class_docstr: Class to manage the configuration of the dataframe
docstr: Saves the dataframe object to used for later
  
  Args:
      name (str, optional): Name of the dataframe. Defaults to None.
  
  Raises:
      ValueError: If the dataframe name already exists
docstr_tok: ["Saves","the","dataframe","object","to","used","for","later","Args",":","name","(","str",",","optional",")",":","Name","of","the","dataframe",".","Defaults","to","None",".","Raises",":","ValueError",":","If","the","dataframe","name","already","exists"]
code: def save(self, name: str = None):
      """
      Saves the dataframe object to used for later
  
      Args:
          name (str, optional): Name of the dataframe. Defaults to None.
  
      Raises:
          ValueError: If the dataframe name already exists
      """
  
      file_path = find_closest("pandasai.json")
  
      if not name:
          name = self.name
  
      # Open config file
      saved_df_keys = "saved_dfs"
      with open(file_path, "r+") as json_file:
          pandas_json = json.load(json_file)
          if saved_df_keys not in pandas_json:
              pandas_json[saved_df_keys] = []
  
          # Check for duplicates
          self._check_for_duplicates(pandas_json[saved_df_keys], name)
  
          # Get import path
          import_path = self._get_import_path()
  
          pandas_json[saved_df_keys].append(
              {
                  "name": name,
                  "description": self._sdf.table_description,
                  "sample": self._sdf.head_csv,
                  "import_path": import_path,
              }
          )
  
          json_file.seek(0)
          json.dump(pandas_json, json_file, indent=2)
          json_file.truncate()
  
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 5 for calling the DfConfigManager obj's underlying member method code with example usage: obj.save(name) without return types