original_docstring: Serialize entityset to data description and write to disk.
  
      Args:
          entityset (EntitySet) : Instance of :class:`.EntitySet`.
          path (str) : Location on disk to write `data_description.json` and entity data.
          kwargs (keywords) : Additional keyword arguments to pass as keywords arguments to the underlying serialization method.
      
docstring: Serialize entityset to data description and write to disk.
docstring_tokens: Serialize entityset to data description and write to disk .
code: def write_data_description(entityset, path, **kwargs):
      '''Serialize entityset to data description and write to disk.
  
      Args:
          entityset (EntitySet) : Instance of :class:`.EntitySet`.
          path (str) : Location on disk to write `data_description.json` and entity data.
          kwargs (keywords) : Additional keyword arguments to pass as keywords arguments to the underlying serialization method.
      '''
      path = os.path.abspath(path)
      if os.path.exists(path):
          shutil.rmtree(path)
      for dirname in [path, os.path.join(path, 'data')]:
          os.makedirs(dirname)
      description = entityset_to_description(entityset)
      for entity in entityset.entities:
          loading_info = write_entity_data(entity, path, **kwargs)
          description['entities'][entity.id]['loading_info'].update(loading_info)
      file = os.path.join(path, 'data_description.json')
      with open(file, 'w') as file:
          json.dump(description, file)
code_tokens: def write_data_description ( entityset , path , ** kwargs ) : path = os . path . abspath ( path ) if os . path . exists ( path ) : shutil . rmtree ( path ) for dirname in [ path , os . path . join ( path , 'data' ) ] : os . makedirs ( dirname ) description = entityset_to_description ( entityset ) for entity in entityset . entities : loading_info = write_entity_data ( entity , path , ** kwargs ) description [ 'entities' ] [ entity . id ] [ 'loading_info' ] . update ( loading_info ) file = os . path . join ( path , 'data_description.json' ) with open ( file , 'w' ) as file : json . dump ( description , file )
short_docstring: Serialize entityset to data description and write to disk.
short_docstring_tokens: Serialize entityset to data description and write to disk .
comment: '''Serialize entityset to data description and write to disk.
  
      Args:
          entityset (EntitySet) : Instance of :class:`.EntitySet`.
          path (str) : Location on disk to write `data_description.json` and entity data.
          kwargs (keywords) : Additional keyword arguments to pass as keywords arguments to the underlying serialization method.
      '''