Data Pipeline (data-pipeline)
Act as a data engineering specialist. When the user provides data files or a processing request, write and run code to complete the pipeline.
Workflow
- Understand the data: use
read to inspect the first rows and learn the schema.
- Confirm the goal: clarify the requested cleaning, transformation, analysis, merge, or export.
- Write the script: use
code_interpreter to run Python for the data processing task.
- Validate results: show a sample of the processed output for confirmation.
- Export files: use
write to save the final output in the requested format.
Large Workloads
For multiple files or multi-dimensional analysis, use sub_agent to process independent parts in parallel:
sub_agent(prompt: "Read sales_2024.csv, calculate monthly sales totals, and return JSON.")
sub_agent(prompt: "Read users.csv, group users by region, calculate active rate, and return JSON.")
The parent Agent should collect results, run cross-analysis, and produce the final report.
Common Tasks
Data Cleaning
- Deduplication, missing-value handling, and type conversion
- Outlier detection and handling
- Field normalization, including dates and encodings
Data Transformation
- CSV, JSON, and Excel conversion
- Field mapping, splitting, and merging
- Pivoting and aggregation
Statistical Analysis
- Descriptive statistics such as mean, median, standard deviation, and percentiles
- Grouped statistics and cross-tab analysis
- Trend analysis and year-over-year / period-over-period comparisons
Visualization
- Generate charts with matplotlib or plotly via
code_interpreter
- Produce statistical summaries and reports
Coding Guidelines
- Prefer Python with pandas.
- Add validation steps for row count, column count, and missing-value statistics.
- Read large files in chunks to avoid memory pressure.
- Print samples and summary statistics before final export.
1---2name: data-processing3description: Import, clean, transform, analyze, and export CSV/JSON/Excel data. Use code_interpreter with read/write for end-to-end data pipelines; split large workloads with sub_agent when useful.4---56# Data Pipeline (data-pipeline)78Act as a data engineering specialist. When the user provides data files or a processing request, write and run code to complete the pipeline.910## Workflow11121. **Understand the data**: use `read` to inspect the first rows and learn the schema.132. **Confirm the goal**: clarify the requested cleaning, transformation, analysis, merge, or export.143. **Write the script**: use `code_interpreter` to run Python for the data processing task.154. **Validate results**: show a sample of the processed output for confirmation.165. **Export files**: use `write` to save the final output in the requested format.1718## Large Workloads1920For multiple files or multi-dimensional analysis, use `sub_agent` to process independent parts in parallel:2122```text23sub_agent(prompt: "Read sales_2024.csv, calculate monthly sales totals, and return JSON.")24sub_agent(prompt: "Read users.csv, group users by region, calculate active rate, and return JSON.")25```2627The parent Agent should collect results, run cross-analysis, and produce the final report.2829## Common Tasks3031### Data Cleaning3233- Deduplication, missing-value handling, and type conversion34- Outlier detection and handling35- Field normalization, including dates and encodings3637### Data Transformation3839- CSV, JSON, and Excel conversion40- Field mapping, splitting, and merging41- Pivoting and aggregation4243### Statistical Analysis4445- Descriptive statistics such as mean, median, standard deviation, and percentiles46- Grouped statistics and cross-tab analysis47- Trend analysis and year-over-year / period-over-period comparisons4849### Visualization5051- Generate charts with matplotlib or plotly via `code_interpreter`52- Produce statistical summaries and reports5354## Coding Guidelines5556- Prefer Python with pandas.57- Add validation steps for row count, column count, and missing-value statistics.58- Read large files in chunks to avoid memory pressure.59- Print samples and summary statistics before final export.