// This file is autogenerated, DO NOT EDIT
// aggregations/metrics/matrix-stats-aggregation.asciidoc:128

[source, python]
----
resp = client.search(
    aggs={
        "matrixstats": {
            "matrix_stats": {
                "fields": [
                    "poverty",
                    "income"
                ],
                "missing": {
                    "income": 50000
                }
            }
        }
    },
)
print(resp)
----
