跳到正文
cccskills
免费在 GitHub 公开

datarobot-data-preparation

Tools and guidance for data upload, dataset management, data validation, and preparing data for DataRobot projects. Use when uploading datasets, managing data, or validating data for DataRobot.

中文简介正在准备中。当前显示原文说明。

实测评分 未实测

查看安装方法

包含的文件(2)

  • SKILL.md7.3 KB
  • scripts/upload_dataset.py2.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

DataRobot Data Preparation Skill

This skill provides guidance for preparing and managing data in DataRobot, including uploading datasets, validating data quality, and managing dataset versions.

Quick Start

Most common use case: Upload and validate a dataset

  1. Upload dataset: upload_dataset(file_path, dataset_name) to upload data
  2. Validate data: iterate dataset.get_all_features() and check each feature's na_count and unique_count for quality issues (both can be None for some feature types; target_leakage is only populated on project features after EDA2 — it is never set on catalog datasets, which have no target yet)
  3. Check schema: dr.Dataset.get(dataset_id).get_all_features() to review each column's name and feature_type

Example: "Upload sales_data.csv and check if it's ready for training"

When to use this skill

Use this skill when you need to:

  • Upload datasets to DataRobot
  • Validate data before project creation
  • Manage dataset versions and updates
  • Check data quality and completeness
  • Prepare data for training or predictions
  • Handle data format conversions
  • Connect to external data sources

Key capabilities

1. Dataset Upload

  • Upload CSV, Parquet, and other file formats
  • Connect to databases and data warehouses
  • Handle large datasets efficiently
  • Manage dataset metadata and descriptions

2. Data Validation

  • Validate data formats and schemas
  • Check for missing values and data quality issues
  • Verify column types and formats
  • Identify potential data problems

3. Dataset Management

  • List and search datasets
  • Update dataset metadata
  • Create dataset versions
  • Delete or archive old datasets

4. Data Preparation

  • Clean and preprocess data
  • Handle missing values
  • Format data for DataRobot requirements
  • Prepare prediction datasets

Workflow examples

Example 1: Upload and validate dataset

User request: "Upload my sales_data.csv file and check if it's ready for training."

Agent workflow:

  1. Upload the CSV file to DataRobot
  2. Validate the dataset structure and format
  3. Check for missing values and data quality issues
  4. Verify column types are appropriate
  5. Check for potential issues (leakage, formatting)
  6. Report validation results and recommendations

Example 2: Prepare prediction dataset

User request: "Prepare a prediction dataset based on the training data structure from project abc123."

Agent workflow:

  1. Get the training dataset structure from the project
  2. Identify required columns and data types
  3. Create a template with the same structure
  4. Validate the template matches requirements
  5. Provide guidance on filling in prediction values

Using DataRobot SDK

This skill guides you to use the DataRobot Python SDK directly. Install the SDK if needed:

uv pip install datarobot || python -m pip install datarobot

Key SDK Operations

Use these DataRobot SDK methods for data management:

Dataset Operations:

  • dr.Dataset.create_from_file(file_path) - Upload dataset (no name parameter; rename afterwards with dataset.modify(name=...))
  • dr.Dataset.get(dataset_id) - Get dataset details
  • dr.Dataset.list() - List all datasets
  • dataset.row_count - Get row count
  • len(dataset.get_all_features()) - Get column count

Note: create_from_file blocks until the server finishes ingesting the file (default max_wait=600 seconds); run it in a way that tolerates several minutes (or raise max_wait).

Dataset Information:

  • dataset.name - Dataset name
  • dataset.id - Dataset ID
  • dataset.created_at - Creation timestamp

See the Common Patterns section below for complete examples.

Helper Scripts

This skill includes executable helper scripts that Claude can run directly:

  • scripts/upload_dataset.py - Upload a dataset file to DataRobot

Usage example:

# Upload dataset
python scripts/upload_dataset.py sales_data.csv "Sales Data Q4 2024"

Claude can run this script directly or use it as reference when writing code.

Best practices

  1. Data quality: Clean and validate data before upload
  2. File formats: Use appropriate formats (CSV for small, Parquet for large)
  3. Naming conventions: Use clear, descriptive dataset names
  4. Metadata: Add descriptions and tags for better organization
  5. Versioning: Create versions for important datasets
  6. Data validation: Always validate data before using in projects

Common patterns

Pattern 1: Upload and validate

import datarobot as dr

# Initialize client
dr.Client()

# Upload dataset (blocking: waits for ingestion, default max_wait=600s)
dataset = dr.Dataset.create_from_file(file_path="sales_data.csv")
dataset.modify(name="Sales Data Q4 2024")

print(f"Dataset ID: {dataset.id}")
print(f"Rows: {dataset.row_count}, Columns: {len(dataset.get_all_features())}")

# Get dataset details
dataset_info = dr.Dataset.get(dataset.id)
print(f"Dataset name: {dataset_info.name}")
print(f"Created: {dataset_info.created_at}")

Pattern 2: Dataset management

import datarobot as dr

# List all datasets
datasets = dr.Dataset.list()
print(f"Found {len(datasets)} datasets")

# Search for specific dataset
for dataset in datasets:
    if "sales" in dataset.name.lower():
        print(f"Found: {dataset.name} (ID: {dataset.id})")

# Get specific dataset
dataset = dr.Dataset.get("abc123")
print(f"Dataset: {dataset.name}")
print(f"Size: {dataset.row_count} rows x {len(dataset.get_all_features())} columns")

Data format requirements

CSV Files

  • UTF-8 encoding recommended
  • Headers in first row
  • Consistent delimiters (comma, tab)
  • Proper date/time formatting

Parquet Files

  • Columnar format, efficient for large datasets
  • Preserves data types
  • Better compression than CSV

Database Connections

  • Support for various databases
  • Connection credentials required
  • Query-based data access

Data quality checks

Common checks to perform:

  • Missing values: Identify columns with high missing value rates
  • Data types: Verify columns have correct types
  • Value ranges: Check for outliers and invalid values
  • Duplicates: Identify duplicate records
  • Consistency: Check for data consistency issues

Error handling

Common errors and solutions:

  • Upload failures: Check file format, size limits, encoding
  • Validation errors: Fix data quality issues before proceeding
  • Schema mismatches: Ensure data structure matches expectations
  • Access issues: Verify permissions for dataset operations

SDK Setup

Install DataRobot SDK

uv pip install datarobot || python -m pip install datarobot

Initialize Client

import datarobot as dr

dr.Client()

Resources

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use when the user wants to design, build, code, simulate, or deploy an AI agent (not a predictive model) to DataRobot; mentions agent_spec.yaml, dr-assist, datarobot-agent-assist, dress rehearsal, swarm simulation, or the DataRobot agent template; wants to scaffold a LangGraph, CrewAI, LlamaIndex, NAT, or Base agent targeting DataRobot; wants to add an MCP server, backend API, or React frontend to a DataRobot agent application; or uses the DataRobot CLI (dr) to build or deploy an agentic custom application; or wants to harden, stress-test, or battle-test an agent. Covers the full workflow: agent design, agent_spec.yaml authoring, dress-rehearsal simulation via the DataRobot LLM Gateway, adversarial swarm simulation, template-based coding, and deployment.

中文简介正在准备中。当前显示原文说明。

datarobot-oss/datarobot-agent-skills322026年10月23日 更新

Use when the user wants to design, build, code, or deploy an AI agent on DataRobot; mentions agent_spec.yaml, dress rehearsal, the DataRobot agent template, LangGraph, CrewAI, LlamaIndex, NAT, Base agents, MCP servers, backend APIs, custom frontends, or the DataRobot CLI.

中文简介正在准备中。当前显示原文说明。

datarobot-oss/datarobot-agent-skills322026年10月23日 更新

Use when an agent assist user wants to deploy their agent, put it on DataRobot, get a link to it, or share it with others, the agent can run as a single container, and the project has no `infra/Pulumi.yaml`. Not for agents built from the agent template, which deploy with Pulumi through datarobot-agent-assist. Users usually just say "deploy" or "deploy to DataRobot" and won't mention containers, workloads or the CLI.

中文简介正在准备中。当前显示原文说明。

datarobot-oss/datarobot-agent-skills322026年10月23日 更新

Use when the user wants to adversarially test, evaluate, or harden an implemented AI agent before deployment; mentions swarm simulation, attack testing, persistence testing, evaluation criteria, or eval_report.md.

中文简介正在准备中。当前显示原文说明。

datarobot-oss/datarobot-agent-skills322026年10月23日 更新

Use when the user wants to configure LLM integration for a DataRobot agent application. This skill helps to change LLM model, switch between the LLM integrations the project supports (LLM Gateway, a DataRobot-deployed LLM, an external provider, an LLM Blueprint, and any others its config declares), or set up provider credentials. The skill reads the project's .datarobot/cli/llm.yml for the real options, interviews the user, then runs sync_llm_env.py with the chosen values as CLI args to merge into .env.

中文简介正在准备中。当前显示原文说明。

datarobot-oss/datarobot-agent-skills322026年10月23日 更新

Guidance for setting up CI/CD pipelines for DataRobot application templates using GitLab, GitHub Actions, and Pulumi for infrastructure as code. Use when setting up CI/CD pipelines, configuring deployments, or managing infrastructure for DataRobot application templates.

中文简介正在准备中。当前显示原文说明。

datarobot-oss/datarobot-agent-skills322026年10月23日 更新

查看 datarobot-oss 的全部技能

报告此技能的问题