tensortrade.pipeline.pipeline module

class tensortrade.pipeline.pipeline.DataPipeline(transformers: List[AbstractTransformer])[source]

Bases: object

Initializes the DataPipeline with a list of transformers.

Parameters:

transformers (List[AbstractTransformer]) – A list of transformer instances.

transform(df: DataFrame) DataFrame[source]

Applies each transformer in sequence to the DataFrame.

Parameters:

df (DataFrame) – The input DataFrame.

Returns:

The transformed DataFrame after applying all transformers.

Return type:

DataFrame