AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Transform Data

skill-ericwang915-data-scientist-skills-transform-data · by ericwang915

Reshape, pivot, melt, merge, aggregate, and transform tabular data using pandas, polars, or SQL. Use when restructuring datasets, combining multiple tables, creating aggregations, or converting between wide and long formats.

No reviews yet
0 installs
27 views
0.0% view→install

Install

$ agentstack add skill-ericwang915-data-scientist-skills-transform-data

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-ericwang915-data-scientist-skills-transform-data)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
6mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Transform Data? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Transform Data

Purpose

Reshape and restructure datasets to match the format required for analysis, visualization, or modeling. Covers all common transformation patterns in pandas, polars, and SQL.

How It Works

Step 1: Understand the Current and Target Structure

  • Identify the current data shape (wide vs. long, normalized vs. denormalized)
  • Clarify the desired output structure
  • Map columns to their roles (identifiers, variables, values)

Step 2: Apply Transformations

Reshaping:

  • Pivot: Long → wide (aggregate values into columns)
  • Melt/Unpivot: Wide → long (columns into rows)
  • Stack/Unstack: Multi-level index manipulation
  • Transpose: Swap rows and columns

Combining:

  • Merge/Join: Combine tables on key columns (inner, left, right, outer, cross)
  • Concat: Stack datasets vertically or horizontally
  • Append: Add new rows to existing data

Aggregating:

  • GroupBy: Split-apply-combine with custom aggregation functions
  • Rolling windows: Moving averages, cumulative sums, expanding statistics
  • Pivot tables: Multi-dimensional aggregation with subtotals

Deriving:

  • Apply/Map: Custom transformations per row or column
  • Binning: Cut continuous variables into categories
  • Ranking: Rank values within groups
  • Lag/Lead: Shift values for time-based comparisons

Step 3: Generate Code

  • pandas, polars, or SQL — based on user preference
  • Include data validation before and after transformation
  • Add comments explaining each step

Usage Examples

Example 1: Pivot for dashboard

"Convert this transaction-level data into a monthly revenue pivot table
with products as columns and months as rows"

Example 2: Merge datasets

"Join this user table with the events table on user_id,
keeping all users even if they have no events"

Example 3: Complex aggregation

"Calculate the 7-day rolling average of daily active users,
grouped by country and platform"

Output Format

  • Transformation Plan: Step-by-step description of the restructuring
  • Code: pandas / polars / SQL implementation with comments
  • Preview: Before and after data samples showing the transformation
  • Validation: Row count checks, null handling, key preservation verification

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.