EXPAND ALL
  • Home

quantiles

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.

Returns: STRING

The quantiles data, serialized as a JSON dictionary.

Arguments

VariableTypeDescription
valINT64 / FLOAT64The data to calculate the quantiles distribution.

Examples:

# 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')
This site uses cookies to provide you with a better user experience. By using Pixie, you consent to our use of cookies.