界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
数据与研究 · SKILL.md

configuration-and-output

configuration-and-output

【数据与研究】Guides fg-data-profiling Settings, YAML config, environment variables, report sections, HTML assets, cache, and serialization workflows.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: configuration-and-output description: "Guides fg-data-profiling Settings, YAML config, environment variables, report sections, HTML assets, cache, and serialization workflows." disable-model-invocation: true metadata: disco-role: operating license: MIT

Configuration and Output

Use this sub-skill when a user wants to control report contents, performance, HTML rendering, YAML settings, environment variables, cache invalidation, or serialization.

Read first

Common configuration routes

User intentStart with
Large dataset, faster reportminimal=True, a minimal YAML, or disable correlations/interactions/missing diagrams/samples/duplicates
Privacy-aware report sectionssamples=None, duplicates=None, sensitive workflow in comparison/quality sub-skill
Branded HTML reporthtml={"style": {"theme": "flatly", "primary_colors": [...]}} and output reference
External assets instead of inline HTMLhtml={"inline": False} and preserve the generated assets directory
Programmatic settings objectfrom data_profiling.config import Settings and mutate before report computation
Environment-variable controlUse PROFILE_-prefixed variables, for example PROFILE_TITLE or JSON-valued PROFILE_PLOT
Re-render after changing configprofile.invalidate_cache() or construct a new ProfileReport

Key source-verified field names

Use current source names. In particular, categorical frequency plot settings live under plot.cat_freq, not stale plot.pie naming.

profile = ProfileReport(
    df,
    title="Configured profile",
    samples=None,
    correlations=None,
    missing_diagrams=None,
    duplicates=None,
    interactions=None,
    plot={"cat_freq": {"show": False}},
    html={"inline": False, "style": {"theme": "united"}},
)

YAML config pattern

Use a YAML config when the same settings should be reused by API and CLI. Do not combine a config file with minimal=True or CLI --minimal.

profile = ProfileReport(df, config_file="profiling-config.yml")
data_profiling --silent --config_file profiling-config.yml data.csv report.html

Boundaries

Validation

When generating settings for a user, prefer the bundled config writer or a small snippet that parses with Settings.from_file(). For output behavior, create a tiny local DataFrame and verify that the expected HTML/JSON file and assets exist before using the same settings on real data.

我的收藏