Install
$ agentstack add skill-ericwang915-data-scientist-skills-transform-data ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo 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.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
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 →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.
- Author: ericwang915
- Source: ericwang915/data-scientist-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.