pyarrow.compute.tdigest#
- pyarrow.compute.tdigest(array,/,q=0.5,*,delta=100,buffer_size=500,skip_nulls=True,min_count=0,options=None,memory_pool=None)#
Approximate quantiles of a numeric array with T-Digest algorithm.
By default, 0.5 quantile (median) is returned.Nulls and NaNs are ignored.An array of nulls is returned if there is no valid data point.
- Parameters:
- arrayArray-like
Argument to compute function.
- q
doubleorsequence ofdouble, default 0.5 Probability levels of the quantiles to approximate. All values must bein [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 numberof non-null values is belowmin_count, the output is null.
- options
pyarrow.compute.TDigestOptions, optional Alternative way of passing options.
- memory_pool
pyarrow.MemoryPool, optional If not passed, will allocate memory from the default memory pool.
On this page

