Skip to content
Skill

QC3_NumericDataThresholdCheck

by cas-bigdatalab

AI Summary

该skill提供数值数据阈值检验的能力,具体包括: 1. 读取结构化文件:支持 CSV、TSV、Excel 等多种格式的结构化数据文件 2. 数值阈值检验:将被检验表中的属性项值与门限比对,检查是否在门限范围

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to install the "QC3_NumericDataThresholdCheck" skill in my project.

Please run this command in my terminal:
# Install skill into your project (6 files)
mkdir -p .claude/skills/QC3_NumericDataThresholdCheck && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/QC3_NumericDataThresholdCheck/SKILL.md "https://raw.githubusercontent.com/cas-bigdatalab/piflow/master/workspace/skills/QC3_NumericDataThresholdCheck/SKILL.md" && mkdir -p .claude/skills/QC3_NumericDataThresholdCheck/assets && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/QC3_NumericDataThresholdCheck/assets/icon.png "https://raw.githubusercontent.com/cas-bigdatalab/piflow/master/workspace/skills/QC3_NumericDataThresholdCheck/assets/icon.png" && mkdir -p .claude/skills/QC3_NumericDataThresholdCheck/evals && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/QC3_NumericDataThresholdCheck/evals/evals.json "https://raw.githubusercontent.com/cas-bigdatalab/piflow/master/workspace/skills/QC3_NumericDataThresholdCheck/evals/evals.json" && mkdir -p .claude/skills/QC3_NumericDataThresholdCheck/scripts && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/QC3_NumericDataThresholdCheck/scripts/QC3_NumericDataThresholdCheck.py "https://raw.githubusercontent.com/cas-bigdatalab/piflow/master/workspace/skills/QC3_NumericDataThresholdCheck/scripts/QC3_NumericDataThresholdCheck.py" && mkdir -p .claude/skills/QC3_NumericDataThresholdCheck/scripts && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/QC3_NumericDataThresholdCheck/scripts/data_io.py "https://raw.githubusercontent.com/cas-bigdatalab/piflow/master/workspace/skills/QC3_NumericDataThresholdCheck/scripts/data_io.py" && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/QC3_NumericDataThresholdCheck/skill.json "https://raw.githubusercontent.com/cas-bigdatalab/piflow/master/workspace/skills/QC3_NumericDataThresholdCheck/skill.json"

Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.

Description

数值数据阈值检验工具。读取结构化数据文件(CSV、TSV、Excel等),检查数值字段是否在指定的门限范围内,不允许超出门限值之外,最后输出为同格式的文件。当用户需要对数据进行阈值检验、数值范围检查、数据质量控制等操作时使用此skill。

功能说明

该skill提供数值数据阈值检验的能力,具体包括: • 读取结构化文件:支持 CSV、TSV、Excel 等多种格式的结构化数据文件 • 数值阈值检验:将被检验表中的属性项值与门限比对,检查是否在门限范围 • 输出结果:将检验后的数据输出为同格式的文件

1. 数值数据阈值检验

通过执行 QC3_NumericDataThresholdCheck.py 脚本,读取输入文件,检查数值字段是否在指定的阈值范围内,并输出处理后的文件。 调用方式: `bash python scripts/QC3_NumericDataThresholdCheck.py --input_path <输入文件路径> --origin_output_path <输出文件路径> --field_name <字段名> --max_value <最大值> --min_value <最小值> --qc_mark <QC标记> ` 参数说明: • --input_path:必填,输入文件路径(支持 CSV、TSV、Excel 等格式) • --origin_output_path:必填,输出文件路径(与输入文件格式相同) • --error_output_path:可选,错误数据输出文件路径 • --field_name:必填,要检查的字段名 • --max_value:必填,最大值 • --min_value:必填,最小值 • --additional_condition:可选,额外条件 • --qc_mark:必填,QC标记 • --mark_field_name:可选,标记字段名 • --id_field_name:可选,ID字段名 使用示例: `bash

检查 DBH 字段在 0-100 之间

python scripts/QC3_NumericDataThresholdCheck.py --input_path data.csv --origin_output_path output.csv --field_name DBH --max_value 100 --min_value 0 --qc_mark "DBH阈值检验" `

QC3_NumericDataThresholdCheck.py

• 功能:数值数据阈值检验的核心逻辑 • 调用接口:通过命令行参数接收输入输出路径和阈值配置 • 特性: • 支持多种结构化文件格式 • 灵活的阈值配置 • 保留原始数据格式 • 详细的检验结果输出

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 23d ago
Active
Adoption100+ stars on GitHub
540 ★ · Growing
DocsREADME + description
Well-documented

GitHub Signals

Stars540
Forks171
Issues18
Updated23d ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code