-
Notifications
You must be signed in to change notification settings - Fork 4
Examples and Tutorials
ravikiranpagidi edited this page Jun 17, 2026
·
2 revisions
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")cdc = generate_cdc("banking", table="customers", rows=10000, seed=42)dirty = generate_domain(
"ecommerce",
anomalies={"null_rate": 0.03, "duplicate_rate": 0.01, "invalid_status_rate": 0.02},
)df = generate_from_schema("id int, customer_name string, email string, amount double", rows=1000)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},
},
)