Quantile
A Callable for returning a quantile of a column.
Definition
- class controller.callable.transformer.Median(self, column: ColumnReference, quantile: float, output_name: str, output_list: list[str])
- Callable name:
quantile- Callable type:
- Parameters:
column (ColumnReference) – A column reference where the values in the column are used to calculate the specified quantile.
quantile (float) – The quantile to return. Range: \([0, 1]\)
output_name (str) – The name of the new column containing the Callable output.
Parameters
- column
A column reference where the values in the column are used to calculate the specified quantile.
- Type:
- Required:
True
- Choices:
All columns in the target DataFrame
Output
A DataFrame is returned where it contains all columns specified in the output_list, potentially including a new column with the name <callable_id>.<output_name>.
Example configuration
{
"name": "foo",
"callable": "quantile",
"params": {
"column": "$get_submissions.submission.score",
"quantile": 0.25,
"output_name": "25_quantile_score",
"output_list": [
"get_submissions.submission.id",
"get_submissions.submission.score",
"foo.25_quantile_score"
]
}
}