csv_formatter

Convert CSV files to JSONL format using the data_juicer library.

541|171|Updated May 3, 2018
One-click install
npx skills add https://github.com/cas-bigdatalab/piflow --skill csv-formatter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: csv_formatter
Source: https://github.com/cas-bigdatalab/piflow/tree/main/piflow_engine/cn/piflow/tests/workspace/skills/skills-json/csv_formatter
Command: npx skills add https://github.com/cas-bigdatalab/piflow --skill csv-formatter

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires py-data-juicer, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of converting CSV files into JSONL format, saving time and effort in data preprocessing tasks.

Core Features & Use Cases

  • Efficient Conversion: Rapidly transforms CSV files into a more flexible JSONL format, suitable for analysis and storage.
  • Configurable Parameters: Customize the conversion with options for specifying input/output paths, text fields, file suffixes, parallel processing, and encoding.
  • Use Case: Perfect for scenarios where data needs to be restructured from CSV for machine learning, databases, or further analysis.

Quick Start

Use the csv_formatter skill to convert the CSV file at '/path/to/input.csv' to JSONL format, saving the output at '/path/to/output.jsonl' and include the 'text' field.

Frequently Asked Questions about csv_formatter

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert CSV files to JSONL format for machine learning data preprocessing?

Converting CSV files to JSONL format for data preprocessing requires mapping tabular rows into sequential JSON objects. This Skill automates that exact process, transforming text-heavy CSV files into JSONL output suitable for machine learning and database ingestion.

What is the best way to migrate text-heavy CSV data into JSONL for database storage?

Migrating text-heavy CSV data into JSONL for database storage involves restructuring tabular rows into line-delimited JSON objects. This Skill automates that migration, rapidly transforming CSV files into a flexible JSONL format ideal for database storage and further analysis.

Can I customize the CSV to JSONL conversion with specific text fields and file encoding?

Yes, you can customize the CSV to JSONL conversion with specific text fields and file encoding. This Skill provides configurable parameters for specifying input/output paths, text fields, file suffixes, parallel processing, and encoding to tailor the output to your needs.

Does the data_juicer library support parallel processing for CSV data conversion?

Yes, the data_juicer library supports parallel processing for CSV data conversion. This Skill leverages the library and allows you to configure parallel processing parameters, enabling rapid and efficient transformation of large CSV files into JSONL format.

Why convert CSV to JSONL instead of keeping data in CSV format for analysis?

Converting CSV to JSONL restructures rigid tabular data into a flexible, line-delimited format that handles nested or text-heavy fields better. This conversion is ideal for scenarios requiring data migration into machine learning pipelines, databases, or advanced analytical tools that expect JSONL.

When do I need to use a dedicated tool for CSV to JSONL data migration?

You need a dedicated tool for CSV to JSONL data migration when you are working with text-heavy CSV files and need to prepare structured data for machine learning or database ingestion. Automating this conversion saves significant time and effort in data preprocessing tasks.