tessl install tessl/pypi-kedro@1.1.0Kedro helps you build production-ready data and analytics pipelines
Agent Success
Agent success rate when using this tile
98%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.32x
Baseline
Agent success rate without this tile
74%
Build a data processing pipeline system that transforms customer order data through multiple stages. The system should handle data cleaning, enrichment, and aggregation steps.
Create a pipeline with multiple processing stages that:
@generates
def clean_orders(raw_orders):
"""
Remove invalid entries from raw order data.
Args:
raw_orders: List of raw order dictionaries
Returns:
List of cleaned order dictionaries
"""
pass
def enrich_orders(cleaned_orders, customer_data):
"""
Enrich orders with customer information.
Args:
cleaned_orders: List of cleaned order dictionaries
customer_data: Dictionary mapping customer IDs to customer info
Returns:
List of enriched order dictionaries
"""
pass
def calculate_stats(enriched_orders):
"""
Calculate statistics from enriched orders.
Args:
enriched_orders: List of enriched order dictionaries
Returns:
Dictionary containing order statistics
"""
pass
def generate_report(order_stats):
"""
Generate a summary report from statistics.
Args:
order_stats: Dictionary containing order statistics
Returns:
String containing the summary report
"""
pass
def create_data_pipeline():
"""
Create a complete data processing pipeline.
Returns:
A pipeline object that processes raw orders through all stages
"""
pass
def create_partial_pipelines():
"""
Create two partial pipelines and combine them.
Returns:
A tuple of (pipeline1, pipeline2, combined_pipeline)
"""
passProvides pipeline construction and composition capabilities.