技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
comparison-and-quality【数据与研究】Guides fg-data-profiling report comparison, privacy-safe reports, metadata, data dictionaries, quality outputs, and expectation-suite caveats.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user wants to compare datasets/reports, protect sensitive data in a profile report, attach dataset metadata or data dictionaries, inspect quality outputs, or discuss expectation-suite integration.
compare([...]), profile_a.compare(profile_b), labels, constraints,
and comparison output handling.sensitive=True, samples=None, custom synthetic samples, phone-number
dtype risks, dataset metadata, column descriptions, and type_schema.get_description(), JSON output, alerts, and legacy Great Expectations notes.from data_profiling import ProfileReport, compare
train_profile = ProfileReport(train_df, title="Train", minimal=True)
valid_profile = ProfileReport(valid_df, title="Validation", minimal=True)
comparison = compare([train_profile, valid_profile])
comparison.to_file("train-vs-validation.html")
ProfileReport.compare(other) is an alias for comparing two reports:
comparison = train_profile.compare(valid_profile)
Reports use config.title as labels. Tune report.precision and
html.style.primary_colors when comparison tables are cramped.
profile = ProfileReport(
df,
title="Private profile",
sensitive=True,
samples=None,
duplicates=None,
minimal=True,
)
profile.to_file("private-profile.html")
For reports that need a sample section, replace real records with a synthetic sample:
profile = ProfileReport(
df,
sensitive=True,
sample={"name": "Synthetic sample", "data": synthetic_df, "caption": "Synthetic rows only."},
)
This is redaction guidance, not enterprise PII detection. The open-source package does not automatically manage organization-wide PII classifications.
profile = ProfileReport(
df,
title="Dataset profile",
dataset={"description": "5% reproducible sample", "creator": "Data team"},
variables={"descriptions": {"amount": "Transaction amount"}},
type_schema={"segment": "categorical"},
)
summary = profile.get_description()
json_text = profile.to_json()