databricks-synthetic-data-gen

Generate realistic synthetic data with Spark, Faker, and Pandas UDFs.

3|1|Updated May 12, 2025
One-click install
npx skills add https://github.com/Aradhya0510/databricks-cv-accelerator --skill databricks-synthetic-data-gen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: databricks-synthetic-data-gen
Source: https://github.com/Aradhya0510/databricks-cv-accelerator/tree/main/.github/skills/databricks-synthetic-data-gen
Command: npx skills add https://github.com/Aradhya0510/databricks-cv-accelerator --skill databricks-synthetic-data-gen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires databricks-connect, faker, numpy, pandas, holidays, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of realistic, story-driven synthetic data for Databricks, eliminating the need for manual data creation or the use of sensitive production data for testing and development.

Core Features & Use Cases

  • Scalable Generation: Generates data from thousands to millions of rows using Spark + Faker + Pandas UDFs.
  • Realistic Patterns: Supports complex data patterns including referential integrity, non-linear distributions, and time-based trends.
  • Multiple Output Formats: Saves data as Parquet, JSON, CSV, or Delta tables in Unity Catalog Volumes.
  • Use Case: Generate a realistic e-commerce dataset with customers, orders, and products, complete with realistic purchase patterns and customer segmentation, for use in a Databricks analytics demo.

Quick Start

Generate 10,000 synthetic customer records and 50,000 orders for the catalog 'my_catalog' and schema 'my_schema'.

Frequently Asked Questions about databricks-synthetic-data-gen

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate realistic synthetic data at scale in Databricks?

Generate realistic synthetic data at scale in Databricks by using Spark, Faker, and Pandas UDFs to create millions of rows. This approach handles complex patterns like referential integrity and non-linear distributions for testing and demos.

Can I write synthetic data directly to Unity Catalog Volumes?

Yes, you can write synthetic data directly to Unity Catalog Volumes. The generated datasets can be saved as Delta tables, Parquet, JSON, or CSV formats within your specified catalog and schema.

What's the best way to create test datasets with realistic purchase patterns for an e-commerce demo?

Creating test datasets with realistic purchase patterns is best handled by generating synthetic data with Spark and Faker. This supports customer segmentation, referential integrity, and time-based trends for e-commerce, IoT, or CRM domains.

Does synthetic data generation with Faker support non-linear distributions and referential integrity?

Synthetic data generation with Faker supports non-linear distributions and referential integrity. It leverages Pandas UDFs to handle complex data patterns, ensuring generated records maintain realistic relationships and time-based trends across tables.

Do I need databricks-connect to generate sample data using Spark and Pandas UDFs?

Yes, you need databricks-connect along with faker, numpy, pandas, and holidays dependencies to generate sample data. These tools enable scalable serverless execution and complex pattern generation within your Databricks environment.

What are the limitations of using synthetic data for testing in Spark?

While synthetic data generation in Spark creates realistic patterns and distributions, it remains simulated data. It cannot replicate exact production anomalies or sensitive real-world behaviors, making it ideal for demos and testing but not for exact production replication.