Results of 1 - 2 of about 2 for Faker (0.001 sec.)
- Create Synthetic Data 11228
- DuckDB lets you quickly generate synthetic datasets by combining a few building blocks: functions and clauses that generate rows , functions that generate values to fill those rows, and extensions that generate whole benchmark datasets. Thi
...each building block with a runnable example. Generating Rows range functions hash functions, e.g., hash , md5 , sha256 the Faker Python package via the Python function API using cross products (Cartesian products) range and generate_series The range f...st recently produced: CREATE SEQUENCE id_seq START 100; SELECT nextval('id_seq') AS id FROM range(3); Generating Text with Faker For realistic-looking names, addresses and other text, you can call the Faker Python package through the Python function A...PI : import duckdb from duckdb.sqltypes import * from faker import Faker fake = Faker() def random_date(): return fake.date_between() def random_short_text(): return fake.text(max_nb... - https://man.mtool.work/duckdb/2.0/guides/snippets/create_synthetic_data.html
- Python Function API 7485
- You can create a DuckDB user-defined function (UDF) from a Python function so it can be used in SQL queries. Similarly to regular functions , they need to have a name, a return type and parameter types. Creating Functions To register a Pyth
...y a single value to be returned. This can be useful to interact with Python libraries that don't operate on Arrow, such as faker : import duckdb from duckdb.sqltypes import DATE from faker import Faker def random_date(): fake = Faker() return fake.dat... - https://man.mtool.work/duckdb/2.0/clients/python/function.html
PREV
1
NEXT
DuckDB 2.0 Documentation / man.mtool.work