EXPAND ALL
- Home
- About Pixie
- Installing Pixie
- Using Pixie
- Tutorials
- Reference
Calculates several useful percentiles of the aggregated data using tdigest. Returns a serialized JSON object with the keys for 1%, 10%, 50%, 90%, and 99%. You can use px.pluck_float64
to grab the specific values from the result.
The quantiles data, serialized as a JSON dictionary.
Variable | Type | Description |
---|---|---|
val | INT64 / FLOAT64 | The data to calculate the quantiles distribution. |
# Calculate the quantiles.df = df.agg(latency_dist=('latency_ms', px.quantiles))# Pluck p99 from the quantiles.df.p99 = px.pluck_float64(df.latency_dist, 'p99')