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

profiling-workflows

profiling-workflows

【数据与研究】Guides core fg-data-profiling ProfileReport workflows for pandas DataFrames, exports, time-series, type schemas, and report smoke checks.

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

技能说明

GitHub

name: profiling-workflows description: "Guides core fg-data-profiling ProfileReport workflows for pandas DataFrames, exports, time-series, type schemas, and report smoke checks." disable-model-invocation: true metadata: disco-role: operating license: MIT

Profiling Workflows

Use this sub-skill when the user wants to create, inspect, or export an fg-data-profiling report with the Python API. This covers the current public import data_profiling, ProfileReport, and the pandas df.profile_report() convenience method.

Read first

Core API pattern

import pandas as pd
from data_profiling import ProfileReport

df = pd.DataFrame({"amount": [1.0, 2.5, 3.0], "segment": ["a", "b", "b"]})
profile = ProfileReport(df, title="Dataset profile", minimal=True, progress_bar=False)
profile.to_file("profile.html")

If the user already has a pandas DataFrame and has imported data_profiling, the package also registers:

profile = df.profile_report(title="Dataset profile", minimal=True)

Prefer minimal=True or a sampled DataFrame for first-pass profiling of large or unfamiliar data. Move performance tuning and report-section controls to ../configuration-and-output/SKILL.md when the user asks for exact settings.

Choose the right mode

User intentRecommended start
Quick EDA report for a pandas DataFrameProfileReport(df, minimal=True) then to_file("report.html")
Full exploratory report with URL/file/image/text detectionProfileReport(df, explorative=True) and review optional dependencies
Time-series EDAProfileReport(df, tsmode=True, sortby="time_column") if chronological order is a column
Known semantic column typesPass type_schema={"col": "categorical"} or a time-series type schema
JSON profile values for automationjson.loads(profile.to_json()) or profile.get_description()
Sensitive datasetRoute to ../comparison-and-quality/SKILL.md before exposing samples/duplicates
Spark DataFrameRoute to ../integrations-and-backends/SKILL.md first

Important boundaries

Safety and validation

  • Start with tiny local fixtures before profiling private, very large, or expensive datasets.
  • Do not rely on the original repository's examples at runtime; use the bundled smoke script or adapt the API snippets in this sub-skill.
  • If a report has already rendered and the configuration changes, either create a fresh ProfileReport or use cache invalidation from the configuration sub-skill.
  • Treat notebook widget rendering as optional; HTML export is the most portable output for sharing.
我的收藏