class_docstr: A pythonic computation and processing framework.
  
  DataCollection is a pythonic computation and processing framework for unstructured
  data in machine learning and data science. It allows a data scientist or researcher
  to assemble data processing pipelines and do their model work (embedding,
  transforming, or classification) with a method-chaining style API.
  
  Args:
      data ('towhee.runtime.DataQueue'):
          The data to be stored in DataColletion in the form of DataQueue.
  
  Examples:
      >>> from towhee.runtime.data_queue import DataQueue, ColumnType
      >>> from towhee.datacollection.data_collection import DataCollection
      >>> dq = DataQueue([('a', ColumnType.SCALAR), ('b', ColumnType.QUEUE)])
      >>> dq.put(('a', 'b1'))
      True
      >>> DataCollection(dq)
      <DataCollection Schema[a: ColumnType.SCALAR, b: ColumnType.QUEUE] SIZE 1>
class_docstr_tok: ["A","pythonic","computation","and","processing","framework",".","DataCollection","is","a","pythonic","computation","and","processing","framework","for","unstructured","data","in","machine","learning","and","data","science",".","It","allows","a","data","scientist","or","researcher","to","assemble","data","processing","pipelines","and","do","their","model","work","(","embedding",",","transforming",",","or","classification",")","with","a","method-chaining","style","API",".","Args",":","data","(","'towhee.runtime.DataQueue","'",")",":","The","data","to","be","stored","in","DataColletion","in","the","form","of","DataQueue",".","Examples",":",">",">",">","from","towhee.runtime.data_queue","import","DataQueue",",","ColumnType",">",">",">","from","towhee.datacollection.data_collection","import","DataCollection",">",">",">","dq","=","DataQueue","(","[","(","'","a","'",",","ColumnType.SCALAR",")",",","(","'","b","'",",","ColumnType.QUEUE",")","]",")",">",">",">","dq.put","(","(","'","a","'",",","'b1","'",")",")","True",">",">",">","DataCollection","(","dq",")","<","DataCollection","Schema","[","a",":","ColumnType.SCALAR",",","b",":","ColumnType.QUEUE","]","SIZE","1",">"]
docstr: Iterate the DataCollection in the form of Entity.
  
  Examples:
      >>> from towhee.runtime.data_queue import DataQueue, ColumnType
      >>> from towhee.datacollection.data_collection import DataCollection
      >>> dq = DataQueue([('a', ColumnType.SCALAR), ('b', ColumnType.QUEUE)])
      >>> dq.put(('a', 'b1'))
      True
      >>> dq.put(('a', 'b2'))
      True
      >>> dc = DataCollection(dq)
      >>> [i for i in dc]
      [<Entity dict_keys(['a', 'b'])>, <Entity dict_keys(['a', 'b'])>]
docstr_tok: ["Iterate","the","DataCollection","in","the","form","of","Entity",".","Examples",":",">",">",">","from","towhee.runtime.data_queue","import","DataQueue",",","ColumnType",">",">",">","from","towhee.datacollection.data_collection","import","DataCollection",">",">",">","dq","=","DataQueue","(","[","(","'","a","'",",","ColumnType.SCALAR",")",",","(","'","b","'",",","ColumnType.QUEUE",")","]",")",">",">",">","dq.put","(","(","'","a","'",",","'b1","'",")",")","True",">",">",">","dq.put","(","(","'","a","'",",","'b2","'",")",")","True",">",">",">","dc","=","DataCollection","(","dq",")",">",">",">","[","i","for","i","in","dc","]","[","<","Entity","dict_keys","(","[","'","a","'",",","'","b","'","]",")",">",",","<","Entity","dict_keys","(","[","'","a","'",",","'","b","'","]",")",">","]"]
code: def __iter__(self):
      """
      Iterate the DataCollection in the form of Entity.
  
      Examples:
          >>> from towhee.runtime.data_queue import DataQueue, ColumnType
          >>> from towhee.datacollection.data_collection import DataCollection
          >>> dq = DataQueue([('a', ColumnType.SCALAR), ('b', ColumnType.QUEUE)])
          >>> dq.put(('a', 'b1'))
          True
          >>> dq.put(('a', 'b2'))
          True
          >>> dc = DataCollection(dq)
          >>> [i for i in dc]
          [<Entity dict_keys(['a', 'b'])>, <Entity dict_keys(['a', 'b'])>]
      """
      return iter(self._iterable)
  
file_path: towhee/towhee/datacollection/data_collection.py
imports: import copy
  from typing import Any
  from towhee.datacollection.entity import Entity
  from towhee.runtime.data_queue import ColumnType
  from towhee.datacollection.mixins.display import DisplayMixin
label_desc: Use image node_id 2 for calling the DataCollection obj's underlying member method code with example usage: obj.__iter__() and returns: iter