MichelRojo86WPP/copilot-config / skills/accelerated-computing-cudf
accelerated-computing-cudf
VerifiedOfficial NVIDIA-authored guidance for NVIDIA cuDF GPU DataFrames, pandas acceleration, dask-cuDF, ETL, joins, groupby, CSV/Parquet I/O, nullable semantics, and multi-GPU DataFrame workloads.
evals/files/cudf-pivot-melt/code/generate_data.py
View on GitHub# SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
"""Generate synthetic retail sales data for pivot/melt operations."""
import os
import numpy as np
import pandas as pd
SEED = 42
N_ROWS = 60_000
def generate():
if os.path.exists("retail_sales.csv"):
return
rng = np.random.default_rng(SEED)
stores = [f"Store_{i:02d}" for i in range(1, 16)]
products = ["Laptop", "Phone", "Tablet", "Headphones", "Charger",
"Case", "Cable", "Monitor", "Keyboard", "Mouse"]
quarters = ["Q1", "Q2", "Q3", "Q4"]
years = [2022, 2023, 2024]
channels = ["online", "in-store", "phone"]
df = pd.DataFrame({
"transaction_id": range(N_ROWS),
"store": rng.choice(stores, N_ROWS),
"product": rng.choice(products, N_ROWS),
"year": rng.choice(years, N_ROWS),
"quarter": rng.choice(quarters, N_ROWS),
"channel": rng.choice(channels, N_ROWS, p=[0.5, 0.35, 0.15]),
"units_sold": rng.integers(1, 20, N_ROWS),
"revenue": np.round(rng.uniform(10, 2000, N_ROWS), 2),
"cost": np.round(rng.uniform(5, 1500, N_ROWS), 2),
"customer_satisfaction": rng.integers(1, 6, N_ROWS),
})
df["profit"] = df["revenue"] - df["cost"]
df.to_csv("retail_sales.csv", index=False)
print(f"Generated {len(df)} retail sales rows -> retail_sales.csv")
if __name__ == "__main__":
generate()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| deprecation-and-migrationaddyosmani/agent-skillsManages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| performance-optimizationaddyosmani/agent-skillsOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| Agent Cost Reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| Agent Cost Reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |