code: def load(cls, filename, project=None, delim=' | '):
          r
          if project is None:
              project = ws.new_project()
  
          fname = cls._parse_filename(filename, ext='csv')
          a = pd.read_table(filepath_or_buffer=fname,
                            sep=',',
                            skipinitialspace=True,
                            index_col=False,
                            true_values=['T', 't', 'True', 'true', 'TRUE'],
                            false_values=['F', 'f', 'False', 'false', 'FALSE'])
  
          dct = {}
          # First parse through all the items and re-merge columns
          keys = sorted(list(a.keys()))
          for item in keys:
              m = re.search(r'\[.\]', item)  # The dot '.' is a wildcard
              if m:  # m is None if pattern not found, otherwise merge cols
                  pname = re.split(r'\[.\]', item)[0]  # Get base propname
                  # Find all other keys with same base propname
                  merge_keys = [k for k in a.keys() if k.startswith(pname)]
                  # Rerieve and remove arrays with same base propname
                  merge_cols = [a.pop(k) for k in merge_keys]
                  # Merge arrays into multi-column array and store in DataFrame
                  dct[pname] = sp.vstack(merge_cols).T
                  # Remove key from list of keys
                  [keys.pop(keys.index(k)) for k in keys if k.startswith(pname)]
              else:
                  dct[item] = sp.array(a.pop(item))
  
          project = Dict.from_dict(dct, project=project, delim=delim)
  
          return project
docs: r"""
          Opens a 'csv' file, reads in the data, and adds it to the **Network**
  
          Parameters
          ----------
          filename : string (optional)
              The name of the file containing the data to import.  The formatting
              of this file is outlined below.
  
          project : OpenPNM Project object
              A GenericNetwork is created and added to the specified Project.
              If no Project object is supplied then one will be created and
              returned.