mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
feat(advanced analysis): support MultiIndex column in post processing stage (#19116)
This commit is contained in:
@@ -172,18 +172,21 @@ POSTPROCESSING_OPERATIONS = {
|
||||
{
|
||||
"operation": "aggregate",
|
||||
"options": {
|
||||
"groupby": ["gender"],
|
||||
"groupby": ["name"],
|
||||
"aggregates": {
|
||||
"q1": {
|
||||
"operator": "percentile",
|
||||
"column": "sum__num",
|
||||
"options": {"q": 25},
|
||||
# todo: rename "interpolation" to "method" when we updated
|
||||
# numpy.
|
||||
# https://numpy.org/doc/stable/reference/generated/numpy.percentile.html
|
||||
"options": {"q": 25, "interpolation": "lower"},
|
||||
},
|
||||
"median": {"operator": "median", "column": "sum__num",},
|
||||
},
|
||||
},
|
||||
},
|
||||
{"operation": "sort", "options": {"columns": {"q1": False, "gender": True},},},
|
||||
{"operation": "sort", "options": {"columns": {"q1": False, "name": True},},},
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user