The statistics.median_low()
method is used to return the low median value of a group of data.
The low median value of a group of data is simply the lowest middle value of that data when arranged in ascending or descending order.
statistics.median_low (data)
Parameter | Description |
data | This is required. It is the data you are working with. It could be a list, sequence, or iterator. |
The statistics.median_low()
method returns a float value which represents the low median value of a group of data.
Now, let’s use the statistics.median_low()
method to find the median of grouped continuous data.
import statistics data1 = [1, 2, 3, 4,] # using the data parameter alone print('The low median value of the data is:', statistics.median_low(data1)) data2 = [1, 2, 3, 4, 5, 6] print('The low median of the data is:', statistics.median_low(data2))
data1
.statistics.median_low()
method.data2
.statistics.median_low()
method.RELATED TAGS
CONTRIBUTOR
View all Courses