pyarrow.compute.TDigestOptions¶
- class pyarrow.compute.TDigestOptions(q=0.5, *, delta=100, buffer_size=500, skip_nulls=True, min_count=0)¶
Bases:
_TDigestOptions
Options for the tdigest function.
- Parameters:
- q
double
or sequence ofdouble
, default 0.5 Quantiles to approximate. All values must be in [0, 1].
- delta
int
, default 100 Compression parameter for the T-digest algorithm.
- buffer_size
int
, default 500 Buffer size for the T-digest algorithm.
- skip_nullsbool, default
True
Whether to skip (ignore) nulls in the input. If False, any null in the input forces the output to null.
- min_count
int
, default 0 Minimum number of non-null values in the input. If the number of non-null values is below min_count, the output is null.
- q
- __init__(self, q=0.5, *, delta=100, buffer_size=500, skip_nulls=True, min_count=0)¶
Methods
__init__
(self[, q, delta, buffer_size, ...])deserialize
(buf)Deserialize options for a function.
serialize
(self)- static deserialize(buf)¶
Deserialize options for a function.
- Parameters:
- buf
Buffer
The buffer containing the data to deserialize.
- buf
- serialize(self)¶