batch_data_splitter

Split large json, jsonl, or csv datasets into chunks and generate a manifest file.

541|171|Updated May 3, 2018
One-click install
npx skills add https://github.com/cas-bigdatalab/piflow --skill batch-data-splitter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: batch_data_splitter
Source: https://github.com/cas-bigdatalab/piflow/tree/main/workspace/skills/batch_data_splitter
Command: npx skills add https://github.com/cas-bigdatalab/piflow --skill batch-data-splitter

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

The batch_data_splitter Skill solves the challenge of dividing large datasets into smaller, evenly distributed chunks for easier processing and management.

Core Features & Use Cases

  • Data Splitting: Distributes datasets into specified number of chunks or fixed sample sizes.
  • File Handling: Supports input in json/jsonl/csv formats and outputs a manifest file with detailed information about the splits.
  • Use Case: Ideal for use in data preprocessing workflows where large datasets need to be segmented for parallel processing or for use in training models with varied sample sizes.

Quick Start

To split the dataset 'data.csv' into 5 chunks, use the 'batch_data_splitter' skill with the input parameter 'data.csv' and the output parameter './splits_manifest.json' set to 5.

Frequently Asked Questions about batch_data_splitter

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

FAQPage Schema
How do I split a large dataset into evenly distributed chunks for parallel processing?

To split a large dataset, you can divide it into a specified number of chunks or fixed sample sizes. This ensures uniform distribution for easier management during parallel processing or model training.

What is the best way to divide a large CSV file into multiple smaller files?

Dividing a large CSV file is best handled by automated data splitting tools that segment the dataset into evenly distributed chunks. They process the CSV input and generate a manifest file detailing the output splits.

Can I use batch data splitting for JSON and JSONL files in machine learning preprocessing?

Yes, batch data splitting supports JSON and JSONL files for machine learning preprocessing. It distributes the data into specified chunks based on sample size or split count to prepare datasets for training.

How does a manifest file work when segmenting a dataset into multiple splits?

A manifest file works as an output index that records detailed information about the dataset splits. It is automatically generated during the data splitting process to track the distribution of the resulting chunks.

Does uniform distribution data splitting support both fixed sample sizes and custom split counts?

Yes, uniform distribution data splitting supports both fixed sample sizes and custom split counts. You can specify either the desired number of chunks or the sample size to distribute your dataset accordingly.

Why use a dedicated tool for dataset management instead of manual file splitting?

Using a dedicated tool for dataset management ensures large datasets are evenly distributed into chunks without manual calculation. It generates a manifest file for tracking, which is essential for automated machine learning and analytics workflows.