towhee.operator.concat_operator.ConcatOperator

class towhee.operator.concat_operator.ConcatOperator(concat_type: str = 'row')[source]

Bases: Operator

Concat operator.

Combine multiple dataframes into one. It’s an internal operator, and the framework will set readers and writer to it, so the operator can use readers and wirter directly.

Row based concat:

Col based concat:

Methods

Attributes

flag

key

shared_type

__call__() bool[source]

The framework calls __call__ function repeatedly for every input data.

Args:

Returns:

Raises:

An exception during __init__ can terminate the graph run.

__init__(concat_type: str = 'row') None[source]

Init operator, before a graph starts, the framework will call Operator __init__ function.

Args:

Raises:

An exception during __init__ can terminate the graph run.