dataframe-code-agents
Use ai-data-science-team single-agent pandas code generators for cleaning, wrangling, visualization, and feature engineering workflows.
- License 许可
- MIT
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- dataframe-code-agents
- license
- MIT
- metadata
- { "import": "ai_data_science_team", "package": "ai-data-science-team", "version": "0.0.0.9017", "disco-role": "operating" }
- description
- Use ai-data-science-team single-agent pandas code generators for cleaning, wrangling, visualization, and feature engineering workflows.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/api-reference.md11.2 KB
- 参考文档references/human-in-the-loop-and-logging.md6.5 KB
- 参考文档references/troubleshooting.md8.2 KB
- 参考文档references/workflows.md8.8 KB
03 SKILL.md 正文
dataframe-code-agents
Use this sub-skill when the task is to run or explain one ai-data-science-team pandas code-generation agent over already-loaded pandas data: cleaning, wrangling, Plotly visualization, or feature engineering.
The package agents call the caller-provided LangChain-compatible model when invoked. This operating skill does not provide or configure that model and its bundled inspection script performs no model calls.
Route first
| User intent | Use here? | Target |
|---|---|---|
| Load local CSV/Excel/JSON/Parquet/Pickle files, discover files, or summarize a DataFrame without code generation | No | ../data-access-and-eda/SKILL.md |
| Clean one DataFrame with generated pandas code | Yes | DataCleaningAgent |
| Wrangle, join, reshape, aggregate, or transform one or more DataFrames with generated pandas code | Yes | DataWranglingAgent |
| Generate a Plotly chart from one DataFrame with generated code | Yes | DataVisualizationAgent |
| Produce a model-ready feature table with generic encodings and optional target preservation | Yes | FeatureEngineeringAgent |
| Query a SQL database or reason about SQL safety | No | ../sql-analysis/SKILL.md |
| Compose multiple agents, use analyst teams, supervisors, or Streamlit apps | No | ../multiagent-and-app-workflows/SKILL.md |
| Train H2O models or inspect MLflow tools | No | ../modeling-and-mlflow/SKILL.md |
Minimum runtime assumptions
ai_data_science_teamimports successfully in the current Python environment.- The caller already has data in memory as a pandas
DataFrame, a dict convertible to a DataFrame, or for wrangling a list of DataFrames/dicts. - The caller supplies a LangChain-compatible chat model object as
model=llmbefore invoking an agent. - Data loading, EDA-only reporting, SQL access, app launching, model training, and service orchestration are delegated to sibling sub-skills.
Operating checklist
- Identify the single-agent task: cleaning, wrangling, visualization, or feature engineering.
- Verify the data shape is compatible with the selected agent.
- Choose conservative execution settings:
n_sampleslow enough for wide data.max_retriesbounded, usually1to3.log=Trueonly when the user wants generated code/error files, with a user-selected relativelog_path.human_in_the_loop=Trueonly when a review/resume interaction is acceptable.
- Invoke through the class wrapper (
DataCleaningAgent,DataWranglingAgent,DataVisualizationAgent, orFeatureEngineeringAgent) unless the caller specifically needs the lower-levelmake_*_agentgraph. - Retrieve results through getters or
get_response(); inspect generated code before reusing it outside the package workflow. - If generated code fails, use the returned error key, bounded retries, logs, and the troubleshooting table rather than rerunning blindly.
Fast reference map
- API signatures, response keys, getters, and shared graph behavior:
references/api-reference.md - End-to-end cleaning, wrangling, visualization, and feature engineering patterns:
references/workflows.md - Human review, checkpointers, resume commands, and generated-code logging:
references/human-in-the-loop-and-logging.md - Symptom-based fixes for token pressure, sandbox errors, malformed outputs, and Plotly warnings:
references/troubleshooting.md - Safe import/signature/sandbox probe with no model call:
scripts/inspect_dataframe_agents.py
Key safety facts
- Generated pandas/Plotly code is executed by the package through a subprocess sandbox with a timeout, a memory limit, and blocked imports for common filesystem, process, and network modules.
- The sandbox is a guardrail, not a proof of correctness. Tell the user to review generated functions, especially before copying them into production notebooks or pipelines.
- The default report node is deterministic: it packages selected state keys into an
AIMessagewithout another model explanation call. - Human-in-the-loop review pauses after code execution when enabled, so use a checkpointer and stable
thread_idif the run must be resumed.
04 同仓库更多 Skills
ci-cd-and-automation
Automates CI/CD pipeline setup. Use when setting up or modifying build and deployment pipelines. Use when you need to automate quality gates, configure test runners in CI, or establish deployment strategies.
chrome-devtools
Uses Chrome DevTools via MCP for efficient debugging, troubleshooting and browser automation. Use when debugging web pages, automating browser interactions, analyzing performance, or inspecting network requests. This skill does not apply to `--slim` mode (MCP configuration).
chrome-cdp
Drive a real Chrome via the Chrome DevTools Protocol (CDP). Ensures a debuggable Chrome is running (launching it if needed) so the agent can navigate, read page content, inspect the DOM, run JavaScript, and take screenshots — without the user typing any launch command. Includes a first-class "review a live running app" flow: point Chrome at the app under development and inspect/screenshot the REAL page (what a static-artifact tool cannot do). Backed by Glimpse and the chrome-devtools MCP server. Use when asked to "use chrome", "open chrome", "drive my browser", "read the page in chrome", "review the running app", "screenshot the app", or "/chrome-cdp".
check-identity-pack
Run an AFP 100-point or AUSTRAC safe-harbour identity check over a set of documents, and report exactly what's missing. Use when the user asks to check identity documents, verify someone's ID for onboarding, or assess whether a document pack satisfies Australian identity requirements.
changelog
Auto-generates a changelog from git commits, sprint data, and design documents. Produces both internal and player-facing versions.
cellxgene-census
Query the CZ CELLxGENE Census programmatically for versioned public single-cell and spatial transcriptomics data. Use when you need population-scale cell metadata, gene expression slices, Census summary counts, source H5AD URIs/downloads, embeddings, spatial Census data, or reference atlas comparisons across organisms, tissues, diseases, assays, and cell types. For analyzing your own local single-cell data use scanpy, anndata, or scvi-tools.