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: Concat two DataCollections with same Schema.
  
  Note that this function will consume tha data in the second DataCollection.
  
  Args:
      another ('DataCollection'):
          Another DataCollection to concat.
  
  Examples:
      >>> from towhee.runtime.data_queue import DataQueue, ColumnType
      >>> from towhee.datacollection.data_collection import DataCollection
      >>> dq = DataQueue([('a', ColumnType.SCALAR), ('b', ColumnType.QUEUE)])
      >>> dq1 = DataQueue([('a', ColumnType.SCALAR), ('b', ColumnType.QUEUE)])
      >>> dq2 = DataQueue([('a', ColumnType.SCALAR), ('b', ColumnType.QUEUE)])
      >>> dq1.put(('a', 'b1'))
      True
      >>> dq2.put(('a', 'b2'))
      True
      >>> dc1 = DataCollection(dq1)
      >>> dc2 = DataCollection(dq2)
      >>> len(dc1)
      1
      >>> len(dc2)
      1
      >>> len(dc1 + dc2)
      2
docstr_tok: ["Concat","two","DataCollections","with","same","Schema",".","Note","that","this","function","will","consume","tha","data","in","the","second","DataCollection",".","Args",":","another","(","'DataCollection","'",")",":","Another","DataCollection","to","concat",".","Examples",":",">",">",">","from","towhee.runtime.data_queue","import","DataQueue",",","ColumnType",">",">",">","from","towhee.datacollection.data_collection","import","DataCollection",">",">",">","dq","=","DataQueue","(","[","(","'","a","'",",","ColumnType.SCALAR",")",",","(","'","b","'",",","ColumnType.QUEUE",")","]",")",">",">",">","dq1","=","DataQueue","(","[","(","'","a","'",",","ColumnType.SCALAR",")",",","(","'","b","'",",","ColumnType.QUEUE",")","]",")",">",">",">","dq2","=","DataQueue","(","[","(","'","a","'",",","ColumnType.SCALAR",")",",","(","'","b","'",",","ColumnType.QUEUE",")","]",")",">",">",">","dq1.put","(","(","'","a","'",",","'b1","'",")",")","True",">",">",">","dq2.put","(","(","'","a","'",",","'b2","'",")",")","True",">",">",">","dc1","=","DataCollection","(","dq1",")",">",">",">","dc2","=","DataCollection","(","dq2",")",">",">",">","len","(","dc1",")","1",">",">",">","len","(","dc2",")","1",">",">",">","len","(","dc1","+","dc2",")","2"]
code: def __add__(self, another: "DataCollection") -> "DataCollection":
      """
      Concat two DataCollections with same Schema.
  
      Note that this function will consume tha data in the second DataCollection.
  
      Args:
          another ('DataCollection'):
              Another DataCollection to concat.
  
      Examples:
          >>> from towhee.runtime.data_queue import DataQueue, ColumnType
          >>> from towhee.datacollection.data_collection import DataCollection
          >>> dq = DataQueue([('a', ColumnType.SCALAR), ('b', ColumnType.QUEUE)])
          >>> dq1 = DataQueue([('a', ColumnType.SCALAR), ('b', ColumnType.QUEUE)])
          >>> dq2 = DataQueue([('a', ColumnType.SCALAR), ('b', ColumnType.QUEUE)])
          >>> dq1.put(('a', 'b1'))
          True
          >>> dq2.put(('a', 'b2'))
          True
          >>> dc1 = DataCollection(dq1)
          >>> dc2 = DataCollection(dq2)
          >>> len(dc1)
          1
          >>> len(dc2)
          1
          >>> len(dc1 + dc2)
          2
      """
      new = copy.deepcopy(self)
      new._iterable = self._iterable + another._iterable
  
      return new
  
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 7 for calling the DataCollection obj's underlying member method code with example usage: obj.__add__(another) and returns: new