// This file is autogenerated, DO NOT EDIT
// aggregations/metrics/median-absolute-deviation-aggregation.asciidoc:90

[source, python]
----
resp = client.search(
    index="reviews",
    size=0,
    aggs={
        "review_variability": {
            "median_absolute_deviation": {
                "field": "rating",
                "compression": 100
            }
        }
    },
)
print(resp)
----
