data-diffusion
https://github.com/ajosanchez/data-diffusion
data-diffusion is an open-source Python library I built that generates realistic synthetic datasets from real tabular data, which is useful when teams need more data for testing, prototyping, or modeling and can’t rely on the original. I implemented a recently published machine learning method (ForestFlow, AISTATS 2024) as a clean, two-call API: fit on a pandas DataFrame, then sample as many new rows as needed, with column types, ranges, and categories preserved automatically. It runs on standard CPUs with no GPU required and produces reproducible results from a fixed seed. In a demo on the classic Iris dataset, I expanded 150 rows into 3,000 synthetic rows that kept the original cluster structure, with averages matching within 0.04 and standard deviations within 0.06. The project also reflects production-minded habits: it ships as an installable, MIT-licensed package with a test suite, automated linting and type checking, and a clear disclaimer that synthetic data is not the same as anonymization, which shows an awareness of privacy risks in real-world data work.