Mean
A Callable for returning the mean of a column.
Definition
- class controller.callable.transformer.Mean(self, column: ColumnReference, output_name: str, output_list: list[str])
- Callable name:
mean- Callable type:
- Parameters:
column (ColumnReference) – A column reference where the values in the column are used to calculate the mean.
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 mean.
- 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": "mean",
"params": {
"column": "$get_submissions.submission.score",
"output_name": "mean_score",
"output_list": [
"get_submissions.submission.id",
"get_submissions.submission.score",
"foo.mean_score"
]
}
}