// This file is autogenerated, DO NOT EDIT
// aggregations/metrics/percentile-aggregation.asciidoc:335

[source, python]
----
resp = client.search(
    index="latency",
    size=0,
    aggs={
        "load_time_outlier": {
            "percentiles": {
                "field": "load_time",
                "tdigest": {
                    "execution_hint": "high_accuracy"
                }
            }
        }
    },
)
print(resp)
----
