Data Transform

Use this skill when the task involves converting or reformatting structured data between file formats such as CSV, JSON, XML, or YAML. Suitable for tasks like "convert this CSV to JSON", "reformat my data file", or "change the file format of this dataset". Do NOT use for statistical analysis, aggregation, or report generation.

agentscope-ai Updated 37.8k repo stars
agentscope

File contents

Data Transform Skill

Converts structured data files between formats (CSV ↔ JSON ↔ XML ↔ YAML).

Available Scripts

  • scripts/csv_to_json.py — Convert a CSV file to JSON array format
  • scripts/json_to_csv.py — Flatten a JSON array into a CSV file

Usage

python3 scripts/csv_to_json.py --input data.csv --output data.json
python3 scripts/json_to_csv.py --input data.json --output data.csv

agentscope-ai/agentscope-java commit d8cfbd7300

Frequently asked questions

npx get-skill add agentscope-ai/data-transform