Expand description
The one sampler every analysis tool reads through: which rows (a scope), how they
are picked (a method), how many, and the seed. Describe, Distribution, Correlation
and Data Quality all take their rows from read, so a sample means the same
thing whichever tool shows it.
Structs§
- Analysis
Rows - The rows an analysis reads, and how many the table has.
- PerValue
- What an equal-per-value sample learned beside its rows, from the same pass.
- Read
Watch - A read’s line to the screen: a stop flag set on cancel and a count of rows seen, both
shared with the UI. Streamed reads check
stopbetween batches, block reads between blocks; a single collect runs to its end. - Sample
- Which rows an analysis reads and how it picks them.
- Sample
Source - Where a tool’s rows come from before scoping: the table as shown, or the loaded source with its footer facts. Built on the UI thread, cut on the worker (a source scan can read its schema).
Enums§
- Counted
- What a streamed pass counted beside its sample.
- Sample
Method - How the rows of a scope are picked.
- Size
Error - Why a typed sample size cannot be read.
Constants§
- CANCELLED
- What a read that was stopped says. Its work is dropped, never shown as a result.
- DEFAULT_
SAMPLE_ ROWS - The default sample size, before
[analysis] sample_rowssays otherwise. - MAX_
COUNTED_ KEYS - Distinct keys a pass counts before it gives up counting. Past this the grain is finer than a report can show, and the map would grow with the table.
Functions§
- analysis_
rows - The rows an analysis works on: all when the table has at most
sample_rows(or it isNone), else a seeded sample spread across the table: - count_
rows - Count a frame’s rows.
- no_
rows_ error - A chosen scope matching nothing is an error (a value not in the data, a range past its end), not an empty sample; the table as shown may simply be empty.
- parse_
size - A typed sample size:
50000,50,000,50_000,50k,2m,2.5M. A size of no rows is refused; pastusizeit saturates and the caller clamps. - read
- Read the rows
sampleasks for from a frame already scoped.known_totalspares a count; without one, first-rows reports the rows read as the total (sample_size: None) rather than count. - slices_
reach_ into_ the_ scan - Whether a slice of this plan is read by one file’s scan skipping ahead: a single
Parquet or IPC file (seeking by row group), stubbed columns allowed. Not a filter or
CSV (reads everything before), nor many files (each slice opens every earlier
footer; on 135 S3 files fifty slices beat streaming 37M rows). Asked of the
optimized plan (
SLICE: Positivein theSCAN, or aSLICE[node); if Polars changes its plan text, this says no and streaming takes over: slower, never wrong. - view_
scope_ rows - How many rows a view scope holds, from the view’s row count;
Nonefor a source scope, whose size only a read can tell.
Type Aliases§
- Held
Judge - What
ReadWatch::holdasks of the bytes a sampler holds and the rows they are.