⌘K ctrl+k
Search Shortcut cmd + k | ctrl + k
DuckDB 2.0 ドキュメント 全文検索
per page, with , order by , clip by
Results of 1 - 3 of about 3 for bernoulli (0.003 sec.)
Samples 11812
Samples are used to randomly select a subset of a dataset. Examples Select a sample of exactly 5 rows from tbl using reservoir sampling: SELECT * FROM tbl USING SAMPLE 5; Select a sample of approximately 10% of the table using system sampli ... s included in the sample with that probability. If your table contains fewer than ~10k rows, it makes sense to specify the bernoulli sampling option instead, which applies the probability to each row independently. Even then, you'll sometimes get more and ... rows (up to rounding), you must use the reservoir sampling option. Select a sample of approximately 10% of the table using bernoulli sampling: SELECT * FROM tbl USING SAMPLE 10 PERCENT (bernoulli); Select a sample of exactly 10% (up to rounding) of the ta ... f data that needs to pass through the query engine. DuckDB supports three different types of sampling methods: reservoir , bernoulli and system . By default, DuckDB uses reservoir sampling when an exact number of rows is sampled, and system sampling when ...
https://man.mtool.work/duckdb/2.0/sql/samples.html
SAMPLE Clause 8650
The SAMPLE clause allows you to run the query on a sample from the base table. This can significantly speed up processing of queries, at the expense of accuracy in the result. Samples can also be used to quickly see a snapshot of the data w ... ing default (system) sampling: SELECT * FROM addresses USING SAMPLE 1%; Select a sample of 1% of the addresses table using bernoulli sampling: SELECT * FROM addresses USING SAMPLE 1% (bernoulli); Select a sample of 10 rows from the subquery: SELECT * FROM ...
https://man.mtool.work/duckdb/2.0/sql/query_syntax/sample.html
Relational API 7403
The Relational API builds a query one step at a time from Python. A relation, a DuckDBPyRelation , is a piece of SQL text: the methods of the Transformation and Functions sections return a new relation whose text extends the one they were c ... : int, keyword-only, default: None The seed of the random draw. * method : str, keyword-only, default: None 'reservoir' , 'bernoulli' or 'system' ; 'reservoir' for n and 'bernoulli' for percent when omitted. Example import duckdb duckdb_conn = duckdb.conn ...
https://man.mtool.work/duckdb/2.0/clients/python/relational_api.html
PREV 1 NEXT
DuckDB 2.0 Documentation / man.mtool.work