The median is the middle value in a list of values within an attribute.
For example, in the series 5 - 10 - 77 - 320 - 1, the median is 77.
But if the series is made up of an even number of values, the median is the mean of the two middle values. (e.g. in the series 1 - 2 - 3 - 4, the median is 2.5, that is the mean of 2 and 3, the middle values).
The median is different from the mean. In fact, the mean corresponds to the mathematical average value of an attribute.
Function and parameters
It identifies the column to which you want to apply the formula. The column parameter is mandatory.
It allows you to group the results by a certain column.
The following example uses the Students Performance dataset.
The median of the math score attribute is 66.