code: def save(cls, network=None, phases=[], filename='', delim=' | '):
          r
          project, network, phases = cls._parse_args(network=network,
                                                     phases=phases)
          df = Pandas.to_dataframe(network=network, phases=phases,
                                   join=True, delim=delim)
  
          # Write to file
          if filename == '':
              filename = project.name
          fname = cls._parse_filename(filename=filename, ext='csv')
          df.to_csv(fname, index=False)
docs: r"""
          Save all the pore and throat property data on the Network (and
          optionally on any Phases objects) to CSV files.
  
          Parameters
          ----------
          network : OpenPNM Network
              The Network containing the data to be stored
  
          phases : list of OpenPNM Phases (optional)
              The Phases whose data should be stored.
  
          filename : string or path object
              The name of the file to store the data
  
          Notes
          -----
          The data from all Geometry objects is added to the file automatically.