agentsclimarketplace

Data processor

Skill publisher-skill/claude-skill/skills/data_processor

claude-skill skills

Install
npx -y skills add publisher-skill/claude-skill --skill data_processor

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 28 days oldThe repository was created 28 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

数据处理器 - CSV/Excel/JSON 读写、转换、过滤、合并等数据处理

SKILL.md

2.0 KB, as published. Nobody here has run it

Data Processor Skill

数据处理器,CSV/JSON 读写、转换、过滤、合并等。

功能特性

  • CSV 读写 - 读取和写入 CSV 文件
  • JSON 读写 - 读取和写入 JSON 文件
  • 格式转换 - CSV 与 JSON 互转
  • 数据过滤 - 按条件过滤数据
  • 数据排序 - 按字段排序
  • 数据合并 - 合并多个 CSV 文件
  • 数据去重 - 去除重复数据
  • 数据统计 - 获取数据统计信息

使用方法

Python API

from skills.data_processor import DataProcessor

proc = DataProcessor()

# 读取 CSV
data = proc.read_csv('data.csv')

# 写入 CSV
proc.write_csv(data, 'output.csv')

# 过滤数据
filtered = proc.filter_data(data, lambda x: int(x['age']) > 18)

# 转换格式
proc.csv_to_json('data.csv', 'data.json')

# 数据统计
stats = proc.get_statistics(data)

API 参考

DataProcessor 类

read_csv(filepath, delimiter=',', encoding='utf-8')

读取 CSV 文件

write_csv(data, filepath, delimiter=',', encoding='utf-8', headers=None)

写入 CSV 文件

read_json(filepath, encoding='utf-8')

读取 JSON 文件

write_json(data, filepath, encoding='utf-8', indent=2)

写入 JSON 文件

csv_to_json(csv_file, json_file, delimiter=',', encoding='utf-8')

CSV 转 JSON

json_to_csv(json_file, csv_file, delimiter=',', encoding='utf-8')

JSON 转 CSV

filter_data(data, condition)

过滤数据

select_fields(data, fields)

选择字段

sort_data(data, key, reverse=False)

排序数据

merge_csv_files(filepaths, output_file, delimiter=',', encoding='utf-8', include_source=False)

合并 CSV 文件

deduplicate_data(data, key_fields=None)

数据去重

transform_field(data, field, transform_func)

转换字段

get_statistics(data, numeric_fields=None)

获取数据统计

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.