You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
David Ansa edited this page Jan 15, 2024
·
3 revisions
Key Components
1. DataPipeline
The DataPipeline is the core component that allows you to define a sequence of data processing tasks. It can include both transformations and validations.
Example usage:
fromdataDiskimportDataPipeline, Transformation, Validator# Create a DataPipelinepipeline=DataPipeline()
# Add transformation tasks or validatorspipeline.add_task(Transformation(double))
***pipeline.add_task(Transformation(square))
pipeline.add_task(Validator(is_even))
# Process data through the pipelinedata= [1, 2, 3, 4, 5]
result=pipeline.process(data)
print(result)