Skip to content

Examples and Tutorials

ravikiranpagidi edited this page Jun 17, 2026 · 2 revisions

Examples and Tutorials

Ecommerce dashboard starter

data = generate_domain("ecommerce", scale="small", realism="realistic", seed=42)

orders = data["orders"]
customers = data["customers"]
products = data["products"]

Join orders to customers for BI demos:

order_customer = orders.merge(customers[["customer_id", "customer_name"]], on="customer_id")

Banking CDC starter

cdc = generate_cdc("banking", table="customers", rows=10000, seed=42)

Data quality starter

dirty = generate_domain(
    "ecommerce",
    anomalies={"null_rate": 0.03, "duplicate_rate": 0.01, "invalid_status_rate": 0.02},
)

Schema-first starter

df = generate_from_schema("id int, customer_name string, email string, amount double", rows=1000)

Custom relational starter

data = generate_relational(
    tables={
        "customers": {"schema": "customer_id int primary key, customer_name string", "rows": 1000},
        "orders": {"schema": "order_id int primary key, customer_id int references customers.customer_id", "rows": 10000},
    },
)

Clone this wiki locally