从CSV数据集中随机抽取样本。支持按比例(0-1)或固定数量抽取,当两者同时提供时取较小值。
Scanned 9/11/2026
Install to Claude Code
npx -y skills add cas-bigdatalab/piflow --skill random_selector --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Random Selector?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/cas-bigdatalab-random-selector)More formats (shields.io, HTML) on the badges page.
---
name: random_selector
description: 从CSV数据集中随机抽取样本。支持按比例(0-1)或固定数量抽取,当两者同时提供时取较小值。
allowed-tools:
- process
name_zh: 从CSV数据集中随机抽取样本算子
input_params:
- name: input_file
type: string
required: true
description: 输入CSV文件路径
- name: output_file
type: string
required: true
description: 输出CSV文件路径
- name: select_ratio
type: float
required: false
description: 抽取比例(0-1),与select_num同时提供时取较小值
- name: select_num
type: int
required: false
description: 抽取数量,与select_ratio同时提供时取较小值
- name: seed
type: int
required: false
description: 随机种子
output_params:
- name: output_file
type: csv_file
description: 随机采样后的CSV文件
tag: 数据筛选
publisher: COMMUNITY
---
# random_selector
## Overview
该技能通过 `random_selector.py` 执行 CSV 数据随机采样。
## Instructions
### 1. 检查文件
确保 `input_file` 存在。
### 2. 构建命令
根据需求组合参数,**仅提供用户明确指定的参数**。若参数为可选(None),则不要在 shell 命令中包含该 flag。
### 3. 执行采样
`使用以下模板执行:`
```bash
python scripts/random_selector.py \
--input_file "{input_file}" \
--output_file "{output_file}" \
{ "--select_ratio " + str(select_ratio) if select_ratio else "" } \
{ "--select_num " + str(select_num) if select_num else "" } \
{ "--seed " + str(seed) if seed else "" }Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Playbook for creating and editing uCoz landing pages via MCP tools (`templates_tool`, `ftp_tool`, `modules_tool`). Use for tasks such as: "build a landing page", "update the homepage as a landing page", "create a promo page on the homepage", "add a lead form / menu / SEO to the homepage". Homepage: `page_list`, `page_get`; first publish — `page_update` with full `page_tmpl`; HTML edits after generation — `patch_template` (module_id=2, template_id=1), not `update_template`. Activate the mail f...
Interact with the Paperclip control plane API to manage tasks, coordinate with other agents, and follow company governance. Use when you need to check assignments, update task status, delegate work, post comments, set up or manage routines (recurring scheduled tasks), or call any Paperclip API endpoint. Do NOT use for the actual domain work itself (writing code, research, etc.) — only for Paperclip coordination.
Digital Audio Workstation usage, music composition, interactive music systems, and game audio implementation for immersive soundscapes.
Instantly.ai cold email outreach API - manage campaigns, leads, accounts, and analytics. Use for cold email automation, lead management, campaign creation/monitoring, and email account warmup.
Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md. Trigger: /caveman-compress FILEPATH or "compress memory file"